mirror of
https://github.com/golang/go
synced 2024-11-19 06:44:41 -07:00
5c83e651ad
The biggest change is that each test is now responsible for managing the starting and stopping of its parallel subtests. The "Main" test could be run as a tRunner as well. This shows that the introduction of subtests is merely a generalization of and consistent with the current semantics. Change-Id: Ibf8388c08f85d4b2c0df69c069326762ed36a72e Reviewed-on: https://go-review.googlesource.com/18893 Reviewed-by: Russ Cox <rsc@golang.org>
21 lines
477 B
Go
21 lines
477 B
Go
// errorcheck
|
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import "testing"
|
|
|
|
func main() {
|
|
var t testing.T
|
|
|
|
// make sure error mentions that
|
|
// name is unexported, not just "name not found".
|
|
|
|
t.common.name = nil // ERROR "unexported"
|
|
|
|
println(testing.anyLowercaseName("asdf")) // ERROR "unexported" "undefined: testing.anyLowercaseName"
|
|
}
|