Documentation
¶
Overview ¶
Package resulttest supplies committed-result fixtures for transport tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Commit ¶
func Commit(ctx context.Context, t *testing.T, s store.Store) verification.CommitReceipt
Commit saves an actual passed result with private content and retained evidence.
Types ¶
type Authorizer ¶
type Authorizer func(context.Context, verification.ResultContentRequest) error
Authorizer implements current content permission for a test host.
func (Authorizer) AuthorizeResultContent ¶
func (f Authorizer) AuthorizeResultContent(ctx context.Context, r verification.ResultContentRequest) error
AuthorizeResultContent calls the configured test permission check.
type Gate ¶
type Gate func(context.Context, safety.PublicationRequest) (safety.PublicationDecision, error)
Gate screens result content in transport fixtures.
func (Gate) Check ¶
func (f Gate) Check(ctx context.Context, r safety.PublicationRequest) (safety.PublicationDecision, error)
Check calls the configured test screener.
Click to show internal directories.
Click to hide internal directories.