aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/docgen/RuleDocumentationAttributeTest.java
diff options
context:
space:
mode:
authorGravatar David Chen <dzc@google.com>2016-02-22 10:00:49 +0000
committerGravatar Lukacs Berki <lberki@google.com>2016-02-22 16:09:13 +0000
commitba21aa6f3565ef13eaea1c68d97f5924baa94045 (patch)
tree766c5bf1ba3d05e91858946c640c378a3ccc1b99 /src/test/java/com/google/devtools/build/docgen/RuleDocumentationAttributeTest.java
parentd27f5716cf5c07e6b080aaa3efd7f2c5353c9c26 (diff)
Remove unused code for SYNOPSIS, ATTRIBUTE_DEFINITION, and ATTRIBUTE_SIGNATURE
docgen variables. -- MOS_MIGRATED_REVID=115204049
Diffstat (limited to 'src/test/java/com/google/devtools/build/docgen/RuleDocumentationAttributeTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/docgen/RuleDocumentationAttributeTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/com/google/devtools/build/docgen/RuleDocumentationAttributeTest.java b/src/test/java/com/google/devtools/build/docgen/RuleDocumentationAttributeTest.java
index eec4611047..89bb1bbf15 100644
--- a/src/test/java/com/google/devtools/build/docgen/RuleDocumentationAttributeTest.java
+++ b/src/test/java/com/google/devtools/build/docgen/RuleDocumentationAttributeTest.java
@@ -111,7 +111,7 @@ public class RuleDocumentationAttributeTest {
Attribute attribute = Attribute.attr("foo_version", Type.STRING)
.value(defaultValue).build();
RuleDocumentationAttribute attributeDoc = RuleDocumentationAttribute.create(
- TestRule.class, "testrule", "${SYNOPSIS}", 0, NO_FLAGS);
+ TestRule.class, "testrule", "", 0, NO_FLAGS);
attributeDoc.setAttribute(attribute);
String doc = attributeDoc.getSynopsis();
assertEquals("String; optional; default is \"" + defaultValue + "\"", doc);
@@ -123,7 +123,7 @@ public class RuleDocumentationAttributeTest {
Attribute attribute = Attribute.attr("bar_limit", Type.INTEGER)
.value(defaultValue).build();
RuleDocumentationAttribute attributeDoc = RuleDocumentationAttribute.create(
- TestRule.class, "testrule", "${SYNOPSIS}", 0, NO_FLAGS);
+ TestRule.class, "testrule", "", 0, NO_FLAGS);
attributeDoc.setAttribute(attribute);
String doc = attributeDoc.getSynopsis();
assertEquals("Integer; optional; default is " + defaultValue, doc);
@@ -136,7 +136,7 @@ public class RuleDocumentationAttributeTest {
.allowedFileTypes()
.build();
RuleDocumentationAttribute attributeDoc = RuleDocumentationAttribute.create(
- TestRule.class, "testrule", "${SYNOPSIS}", 0, NO_FLAGS);
+ TestRule.class, "testrule", "", 0, NO_FLAGS);
attributeDoc.setAttribute(attribute);
String doc = attributeDoc.getSynopsis();
assertEquals("List of <a href=\"../build-ref.html#labels\">labels</a>; optional", doc);
@@ -149,7 +149,7 @@ public class RuleDocumentationAttributeTest {
.allowedFileTypes(CppFileTypes.CPP_HEADER)
.build();
RuleDocumentationAttribute attributeDoc = RuleDocumentationAttribute.create(
- TestRule.class, "testrule", "${SYNOPSIS}", 0, NO_FLAGS);
+ TestRule.class, "testrule", "", 0, NO_FLAGS);
attributeDoc.setAttribute(attribute);
String doc = attributeDoc.getSynopsis();
assertEquals("<a href=\"../build-ref.html#labels\">Label</a>; required", doc);