diff options
-rw-r--r-- | test/interface/bigdata.go | 3 | ||||
-rw-r--r-- | test/interface/convert.go | 3 | ||||
-rw-r--r-- | test/interface/convert1.go | 3 | ||||
-rw-r--r-- | test/interface/convert2.go | 3 | ||||
-rw-r--r-- | test/interface/embed.go | 2 | ||||
-rw-r--r-- | test/interface/embed0.go | 2 | ||||
-rw-r--r-- | test/interface/embed1.go | 2 | ||||
-rw-r--r-- | test/interface/embed2.go | 2 | ||||
-rw-r--r-- | test/interface/explicit.go | 3 | ||||
-rw-r--r-- | test/interface/fail.go | 2 | ||||
-rw-r--r-- | test/interface/fake.go | 2 | ||||
-rw-r--r-- | test/interface/noeq.go | 3 | ||||
-rw-r--r-- | test/interface/pointer.go | 3 | ||||
-rw-r--r-- | test/interface/private.go | 3 | ||||
-rw-r--r-- | test/interface/private1.go | 2 | ||||
-rw-r--r-- | test/interface/receiver.go | 4 | ||||
-rw-r--r-- | test/interface/receiver1.go | 3 | ||||
-rw-r--r-- | test/interface/recursive1.go | 2 | ||||
-rw-r--r-- | test/interface/recursive2.go | 2 | ||||
-rw-r--r-- | test/interface/returntype.go | 2 | ||||
-rw-r--r-- | test/interface/struct.go | 2 |
21 files changed, 30 insertions, 23 deletions
diff --git a/test/interface/bigdata.go b/test/interface/bigdata.go index 0d8c408c8..0f2e9a990 100644 --- a/test/interface/bigdata.go +++ b/test/interface/bigdata.go @@ -4,8 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// check that big vs small, pointer vs not -// interface methods work. +// Test big vs. small, pointer vs. value interface methods. package main diff --git a/test/interface/convert.go b/test/interface/convert.go index 2b4f45d14..eb6fd1d55 100644 --- a/test/interface/convert.go +++ b/test/interface/convert.go @@ -4,8 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Check uses of all the different interface -// conversion runtime functions. +// Test all the different interface conversion runtime functions. package main diff --git a/test/interface/convert1.go b/test/interface/convert1.go index 4833e847a..4a3ec8a37 100644 --- a/test/interface/convert1.go +++ b/test/interface/convert1.go @@ -4,8 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Check that static interface conversion of -// interface value nil succeeds. +// Test static interface conversion of interface value nil. package main diff --git a/test/interface/convert2.go b/test/interface/convert2.go index 4833e847a..4a3ec8a37 100644 --- a/test/interface/convert2.go +++ b/test/interface/convert2.go @@ -4,8 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Check that static interface conversion of -// interface value nil succeeds. +// Test static interface conversion of interface value nil. package main diff --git a/test/interface/embed.go b/test/interface/embed.go index 46c02cc80..5c52ac023 100644 --- a/test/interface/embed.go +++ b/test/interface/embed.go @@ -4,7 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Check methods derived from embedded interface values. +// Test methods derived from embedded interface values. package main diff --git a/test/interface/embed0.go b/test/interface/embed0.go index bbd81e760..dee8319e4 100644 --- a/test/interface/embed0.go +++ b/test/interface/embed0.go @@ -4,7 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Check that embedded interface types can have local methods. +// Test that embedded interface types can have local methods. package p diff --git a/test/interface/embed1.go b/test/interface/embed1.go index 24e50471f..ee502a162 100644 --- a/test/interface/embed1.go +++ b/test/interface/embed1.go @@ -4,7 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Check that embedded interface types can have local methods. +// Test that embedded interface types can have local methods. package main diff --git a/test/interface/embed2.go b/test/interface/embed2.go index bac214397..1636db78e 100644 --- a/test/interface/embed2.go +++ b/test/interface/embed2.go @@ -4,7 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Check methods derived from embedded interface and *interface values. +// Test methods derived from embedded interface and *interface values. package main diff --git a/test/interface/explicit.go b/test/interface/explicit.go index fbe65e7e3..d19480a68 100644 --- a/test/interface/explicit.go +++ b/test/interface/explicit.go @@ -4,7 +4,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Static error messages about interface conversions. +// Verify compiler messages about erroneous static interface conversions. +// Does not compile. package main diff --git a/test/interface/fail.go b/test/interface/fail.go index 5a2f57fe9..72b854dc0 100644 --- a/test/interface/fail.go +++ b/test/interface/fail.go @@ -4,7 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Check that interface conversion fails when method is missing. +// Test that interface conversion fails when method is missing. package main diff --git a/test/interface/fake.go b/test/interface/fake.go index 55650cc8d..861a64084 100644 --- a/test/interface/fake.go +++ b/test/interface/fake.go @@ -4,7 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Interface comparisons using types hidden +// Test interface comparisons using types hidden // inside reflected-on structs. package main diff --git a/test/interface/noeq.go b/test/interface/noeq.go index b89fd0e82..1c5166ede 100644 --- a/test/interface/noeq.go +++ b/test/interface/noeq.go @@ -4,7 +4,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Interface values containing types that cannot be compared for equality. +// Test run-time error detection for interface values containing types +// that cannot be compared for equality. package main diff --git a/test/interface/pointer.go b/test/interface/pointer.go index 0548c2404..292705066 100644 --- a/test/interface/pointer.go +++ b/test/interface/pointer.go @@ -4,7 +4,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Check that interface{M()} = *interface{M()} produces a compiler error. +// Test that interface{M()} = *interface{M()} produces a compiler error. +// Does not compile. package main diff --git a/test/interface/private.go b/test/interface/private.go index 37890c923..14dfc1ae5 100644 --- a/test/interface/private.go +++ b/test/interface/private.go @@ -4,6 +4,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// Test that unexported methods are not visible outside the package. +// Does not compile. + package main import "./private1" diff --git a/test/interface/private1.go b/test/interface/private1.go index 3173fbef4..9c831a2f4 100644 --- a/test/interface/private1.go +++ b/test/interface/private1.go @@ -4,6 +4,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// Imported by private.go, which should not be able to see the private method. + package p type Exported interface { diff --git a/test/interface/receiver.go b/test/interface/receiver.go index dc2e7808f..4511ab3b4 100644 --- a/test/interface/receiver.go +++ b/test/interface/receiver.go @@ -4,8 +4,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Implicit methods for embedded types. -// Mixed pointer and non-pointer receivers. +// Test Implicit methods for embedded types and +// mixed pointer and non-pointer receivers. package main diff --git a/test/interface/receiver1.go b/test/interface/receiver1.go index 19ca6d462..2b7ccdc1a 100644 --- a/test/interface/receiver1.go +++ b/test/interface/receiver1.go @@ -4,7 +4,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Error messages about missing implicit methods. +// Verify compiler complains about missing implicit methods. +// Does not compile. package main diff --git a/test/interface/recursive1.go b/test/interface/recursive1.go index 2c93a2836..524dda82c 100644 --- a/test/interface/recursive1.go +++ b/test/interface/recursive1.go @@ -4,6 +4,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// Mutually recursive type definitions imported and used by recursive1.go. + package p type I1 interface { diff --git a/test/interface/recursive2.go b/test/interface/recursive2.go index a7f9ab5db..5129ceb02 100644 --- a/test/interface/recursive2.go +++ b/test/interface/recursive2.go @@ -4,7 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Check that the mutually recursive types in recursive1.go made it +// Test that the mutually recursive types in recursive1.go made it // intact and with the same meaning, by assigning to or using them. package main diff --git a/test/interface/returntype.go b/test/interface/returntype.go index b7bebe4f6..4d86f3918 100644 --- a/test/interface/returntype.go +++ b/test/interface/returntype.go @@ -4,7 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Check methods with different return types. +// Test interface methods with different return types are distinct. package main diff --git a/test/interface/struct.go b/test/interface/struct.go index 3c9d01da4..f60819ca8 100644 --- a/test/interface/struct.go +++ b/test/interface/struct.go @@ -4,7 +4,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Interface values containing structures. +// Test interface values containing structures. package main |