Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExprTests ¶
func ExprTests(t *testing.T, globals starlark.StringDict, tt []*ExprTest, options ...ExprTestOption)
Types ¶
type ExecFileTest ¶
func (*ExecFileTest) Run ¶
func (tc *ExecFileTest) Run(t *testing.T, files *protoregistry.Files, globals starlark.StringDict)
type ExecFileTests ¶
type ExecFileTests map[string]*ExecFileTest
func (ExecFileTests) Run ¶
func (tt ExecFileTests) Run(t *testing.T, files *protoregistry.Files, globals starlark.StringDict)
type ExprTest ¶
type ExprTest struct { Expr string // Input expression Env map[string]string // Optional env vars WantErr string // Optional expected error WantElapsed time.Duration // Optional expected min test time WantPrinted string // Optional output of 'print' Want string Before func(t *testing.T, globals starlark.StringDict) starlark.StringDict // Optional function to run at the end After func(t *testing.T, value starlark.Value) // Optional function to run at the end }
type ExprTestOption ¶
type ExprTestOption func(*ExprTest)
Click to show internal directories.
Click to hide internal directories.