package grpctest
import "google.golang.org/grpc/internal/grpctest"
Package grpctest implements testing helpers.
Index ¶
Functions ¶
func RunSubTests ¶
RunSubTests runs all "Test___" functions that are methods of x as subtests of the current test. If x contains methods "Setup(*testing.T)" or "Teardown(*testing.T)", those are run before or after each of the test functions, respectively.
For example usage, see example_test.go. Run it using:
$ go test -v -run TestExample .
To run a specific test/subtest:
$ go test -v -run 'TestExample/^Something$' .
Source Files ¶
grpctest.go
Directories ¶
Path | Synopsis |
---|---|
internal/grpctest/tlogger | Package tlogger initializes the testing logger on import which logs to the testing package's T struct. |
- Version
- v1.28.0-pre
- Published
- Jan 28, 2020
- Platform
- windows/amd64
- Imports
- 3 packages
- Last checked
- 1 hour ago –
Tools for package owners.