Documentation
¶
Overview ¶
Package plugintest holds invokePlugins and a contract source for the tests of the chain's entries (ADR-0302, ADR-0303).
Index ¶
Constants ¶
View Source
const BadBody = `{"bad":true}`
BadBody is the body BadAnswer refuses.
View Source
const EmailInput = `` /* 137-byte string literal not displayed */
EmailInput is an input contract with one required email field, the field #1339's email case reads.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadAnswer ¶
type BadAnswer struct{}
BadAnswer refuses, with a 500 problem, an answer whose body is BadBody.
type Contract ¶
type Contract struct{ Pair *contractcheck.Pair }
Contract is a contractcheck.Source that serves one compiled contract for every call.
func CompileContract ¶
CompileContract compiles an input and an output side with the bounds funcd checks calls with (ADR-0303).
func (Contract) ContractOf ¶
func (s Contract) ContractOf(context.Context, activator.FunctionRef, *v1.Function) (*contractcheck.Pair, error)
type Peeker ¶
type Peeker struct {
// contains filtered or unexported fields
}
Peeker sees every answer at After and reads no body.
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder records each call's caller at Before.
Click to show internal directories.
Click to hide internal directories.