Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(thread *starlark.Thread, _ *starlark.Builtin, args starlark.Tuple, kwargs []starlark.Tuple) (starlark.Value, error)
error(x) reports an error to the Go test framework.
func LoadAssertModule ¶
func LoadAssertModule() (starlark.StringDict, error)
LoadAssertModule loads the assert module. It is concurrency-safe and idempotent.
func SetReporter ¶
SetReporter associates an error reporter (such as a testing.T in a Go test) with the Starlark thread so that Starlark programs may report errors to it.
Types ¶
type Reporter ¶
A Reporter is a value to which errors may be reported. It is satisfied by *testing.T.
func GetReporter ¶
GetReporter returns the Starlark thread's error reporter. It must be preceded by a call to SetReporter.
Click to show internal directories.
Click to hide internal directories.