]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: add test for constructor, fix build
authorRob Pike <r@golang.org>
Sat, 20 Jun 2015 10:28:46 +0000 (20:28 +1000)
committerRob Pike <r@golang.org>
Sat, 20 Jun 2015 10:35:38 +0000 (10:35 +0000)
commit13c44d27b7548f84430e798e61d9e4672c47f5c0
treead7aa07fc2cc70732281b589268e7cc1136038c7
parent79d4d6eca47acc3b2dd0ec598b6a55c0bb0b1b31
cmd/doc: add test for constructor, fix build

Most important: skip test on darwin/arm64 for unclear reasons.

First cut at the test missed this feature of go doc: when asking for
the docs for a type, include any function that looks like it constructs
a that type as a return value.

Change-Id: I124e7695e5d365e2b12524b541a9a4e6e0300fbc
Reviewed-on: https://go-review.googlesource.com/11295
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/doc/doc_test.go
src/cmd/doc/testdata/pkg.go