Documentation ¶
Index ¶
- func ArgumentAtLeast(name string, least int) error
- func ArgumentMustEmpty(name string, args []value.Value) error
- func ArgumentNotEnough(name string, expects int, args []value.Value) error
- func ArgumentNotInRange(name string, minArgs, maxArgs int, args []value.Value) error
- func New(name, format string, args ...any) error
- func NotImplemented(name string) error
- func TypeMismatch(name string, num int, expects, actual value.Type) error
- type AssertionError
- type TestingError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgumentAtLeast ¶
func ArgumentNotInRange ¶
func NotImplemented ¶
Types ¶
type AssertionError ¶
type AssertionError struct { // Token info will be injected by interpreter Token token.Token Actual value.Value Message string }
func NewAssertionError ¶
func NewAssertionError(actual value.Value, format string, args ...any) *AssertionError
func (*AssertionError) Error ¶
func (e *AssertionError) Error() string
type TestingError ¶
type TestingError struct { // Token info will be injected on interpreter Token token.Token Message string }
Testing related errors
func NewTestingError ¶
func NewTestingError(format string, args ...any) *TestingError
func (*TestingError) Error ¶
func (e *TestingError) Error() string
Click to show internal directories.
Click to hide internal directories.