blob: ded0c079c5492339269126203891a8fc885b2ce7 [file] [log] [blame]
// Package testutil provides initalization for unit and integration tests.
//
// Configures logging, random number generators and other global state.
// Typical usage in _test.go files:
//
// import "v.io/x/ref/lib/testutil"
// func TestMain(m *testing.M) {
// testutil.Init()
// os.Exit(m.Run())
// }
//
// InitForTest can be used within test functions as a safe alternative
// to v23.Init.
//
// func TestFoo(t *testing.T) {
// ctx, shutdown := testutil.InitForTest()
// defer shutdown()
// ...
// }
package testutil