diff options
author | 2017-02-15 16:20:24 +0000 | |
---|---|---|
committer | 2017-02-15 19:19:35 +0000 | |
commit | 4f3b582ea521a2eef7377d41c4aee921aea44152 (patch) | |
tree | 52630831942bc3ff8aef776404a1ee65768c079b /src/test/java/com/google/devtools | |
parent | 81f92feeb8ae8e22b62edf90f6b7d44baaec2fbd (diff) |
Generate documentation for bool and int types.
This improves consistency in the documentation (string and list already
have their own page).
--
PiperOrigin-RevId: 147599068
MOS_MIGRATED_REVID=147599068
Diffstat (limited to 'src/test/java/com/google/devtools')
-rw-r--r-- | src/test/java/com/google/devtools/build/docgen/SkylarkDocumentationTest.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/docgen/SkylarkDocumentationTest.java b/src/test/java/com/google/devtools/build/docgen/SkylarkDocumentationTest.java index cdfd62a73c..604c444aac 100644 --- a/src/test/java/com/google/devtools/build/docgen/SkylarkDocumentationTest.java +++ b/src/test/java/com/google/devtools/build/docgen/SkylarkDocumentationTest.java @@ -194,7 +194,11 @@ public class SkylarkDocumentationTest extends SkylarkTestCase { assertThat(moduleDoc.getMethods()).hasSize(1); SkylarkMethodDoc methodDoc = moduleDoc.getMethods().iterator().next(); assertThat(methodDoc.getDocumentation()).isEqualTo("MockClassD#test"); - assertThat(methodDoc.getSignature()).isEqualTo("int MockClassD.test(arg0:int, b, *, c, d=1)"); + assertThat(methodDoc.getSignature()) + .isEqualTo( + "<a class=\"anchor\" href=\"int.html\">int</a> " + + "MockClassD.test(arg0:<a class=\"anchor\" href=\"int.html\">int</a>, " + + "b, *, c, d=1)"); assertThat(methodDoc.getParams()).hasSize(3); } @@ -208,7 +212,8 @@ public class SkylarkDocumentationTest extends SkylarkTestCase { assertThat(moduleDoc.getMethods()).hasSize(1); SkylarkMethodDoc methodDoc = moduleDoc.getMethods().iterator().next(); assertThat(methodDoc.getDocumentation()).isEqualTo("MockClassA#get"); - assertThat(methodDoc.getSignature()).isEqualTo("int MockClassE.get()"); + assertThat(methodDoc.getSignature()) + .isEqualTo("<a class=\"anchor\" href=\"int.html\">int</a> MockClassE.get()"); } private Iterable<Method> extractMethods(Collection<SkylarkJavaMethodDoc> methods) { |