Documentation
¶
Overview ¶
Package integration exports a set of unit tests that can be run by impl/integration or any other specific instantiation of KeyTransparency.
Index ¶
- Variables
- func TestEmptyGetAndUpdate(ctx context.Context, env *Env, t *testing.T)
- func TestListHistory(ctx context.Context, env *Env, t *testing.T)
- func TestMonitor(ctx context.Context, env *Env, t *testing.T)
- func TestUpdateValidation(ctx context.Context, env *Env, t *testing.T)
- func WithOutgoingFakeAuth(ctx context.Context, userID string) context.Context
- type Env
- type NamedTestFn
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTests = []NamedTestFn{ {"TestEmptyGetAndUpdate", TestEmptyGetAndUpdate}, {"TestUpdateValidation", TestUpdateValidation}, {"TestListHistory", TestListHistory}, {"TestMonitor", TestMonitor}, }
AllTests contains all the integration tests. Be sure to extend this when additional tests are added. This is done so that tests can be run in different environments in a portable way.
Functions ¶
func TestEmptyGetAndUpdate ¶
TestEmptyGetAndUpdate verifies set/get semantics.
func TestListHistory ¶
TestListHistory verifies that repeated history values get collapsed properly.
func TestMonitor ¶
TestMonitor verifies that the monitor correctly verifies transitions between epochs.
func TestUpdateValidation ¶
TestUpdateValidation verifies the correctness of updates submitted by the client.
Types ¶
Click to show internal directories.
Click to hide internal directories.