grpc: google.golang.org/grpc/internal/grpctest Index | Files

package grpctest

import "google.golang.org/grpc/internal/grpctest"

Package grpctest implements testing helpers.

Index

Package Files

grpctest.go

func RunSubTests Uses

func RunSubTests(t *testing.T, x interface{})

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$' .

Package grpctest imports 3 packages (graph). Updated 2019-05-13. Refresh now. Tools for package owners.