mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/doc: stop showing interface methods while matching symbols
Fixes #31961 Change-Id: I9db9ecfd2f8ca7cf51df4413a6e0d66de5da7043 Reviewed-on: https://go-review.googlesource.com/c/go/+/178457 Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
e2970a4591
commit
65ef999d52
2 changed files with 18 additions and 2 deletions
|
|
@ -602,6 +602,19 @@ var tests = []test{
|
|||
`Comment about exported interface`,
|
||||
},
|
||||
},
|
||||
// Interface method at package level.
|
||||
{
|
||||
"interface method at package level",
|
||||
[]string{p, `ExportedMethod`},
|
||||
[]string{
|
||||
`func \(ExportedType\) ExportedMethod\(a int\) bool`,
|
||||
`Comment about exported method`,
|
||||
},
|
||||
[]string{
|
||||
`Comment before exported method.*\n.*ExportedMethod\(\)` +
|
||||
`.*Comment on line with exported method`,
|
||||
},
|
||||
},
|
||||
|
||||
// Method.
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue