aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/doc/doc_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/doc/doc_test.go')
-rw-r--r--src/cmd/doc/doc_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmd/doc/doc_test.go b/src/cmd/doc/doc_test.go
index 11d0bdafd9..7bc5842cc6 100644
--- a/src/cmd/doc/doc_test.go
+++ b/src/cmd/doc/doc_test.go
@@ -210,6 +210,18 @@ var tests = []test{
`func \(unexportedType\)`,
},
},
+ // Package dump -short
+ {
+ "full package with -short",
+ []string{`-short`, p},
+ []string{
+ `const ExportedConstant = 1`, // Simple constant.
+ `func ReturnUnexported\(\) unexportedType`, // Function with unexported return type.
+ },
+ []string{
+ `MultiLine(String|Method|Field)`, // No data from multi line portions.
+ },
+ },
// Package dump -u
{
"full package with u",