Documentation ¶
Index ¶
Constants ¶
const IntegrationTestsDebugShellOnErrorFlag = "v23.tests.shell-on-fail"
const IntegrationTestsFlag = "v23.tests"
const (
TestBlessing = "test-blessing"
)
Variables ¶
var IntegrationTestsDebugShellOnError bool
var IntegrationTestsEnabled bool
Functions ¶
func TestContext ¶
func TestContext() (*context.T, context.CancelFunc)
TestContext returns a *context.T suitable for use in tests. It sets the context's logger to logger.Global(), and that's it. In particular, it does not call v23.Init().
func V23Init ¶
V23Init initializes the runtime and sets up the principal with a self-signed TestBlessing. The blessing setup step is skipped if this function is invoked from a v23test.Shell child process, since v23test.Shell passes credentials to its children. NOTE: For tests involving Vanadium RPCs, developers are encouraged to use V23InitWithMounttable, and have their services access each other via the mount table (rather than using endpoint strings).
func V23InitWithMounttable ¶
V23InitWithMounttable initializes the runtime and: - Sets up the principal with a self-signed TestBlessing - Starts a mounttable and sets the namespace roots appropriately Both these steps are skipped if this function is invoked from a v23test.Shell child process.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package basics implements some benchmarks for important basic operations in go.
|
Package basics implements some benchmarks for important basic operations in go. |
Package benchmark implements utilities to augment the standard Go testing.Benchmark functionality.
|
Package benchmark implements utilities to augment the standard Go testing.Benchmark functionality. |
compatibility
|
|
modules/simple
Module
|
|
Package expect implements support for checking expectations against a buffered input stream.
|
Package expect implements support for checking expectations against a buffered input stream. |
Package hello defines a simple client and server and uses them in a series of regression tests.
|
Package hello defines a simple client and server and uses them in a series of regression tests. |
helloclient
Command helloclient is a simple client mainly used in regression tests.
|
Command helloclient is a simple client mainly used in regression tests. |
helloserver
Command helloserver is a simple server mainly used in regression tests.
|
Command helloserver is a simple server mainly used in regression tests. |
Package testutil implements utilities for unit and integration tests.
|
Package testutil implements utilities for unit and integration tests. |
Package timekeeper implements simulated time against the v.io/x/ref/lib/timekeeper.TimeKeeper interface.
|
Package timekeeper implements simulated time against the v.io/x/ref/lib/timekeeper.TimeKeeper interface. |
Package v23test defines Shell, a wrapper around gosh.Shell that provides Vanadium-specific functionality such as credentials management, StartRootMountTable, and StartSyncbase.
|
Package v23test defines Shell, a wrapper around gosh.Shell that provides Vanadium-specific functionality such as credentials management, StartRootMountTable, and StartSyncbase. |