Documentation ¶
Index ¶
- Constants
- Variables
- func Assert(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_Validate(args []value.Value) error
- func Assert_contains(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_contains_Validate(args []value.Value) error
- func Assert_ends_with(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_ends_with_Validate(args []value.Value) error
- func Assert_equal(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_equal_Validate(args []value.Value) error
- func Assert_equal_fold(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_equal_fold_Validate(args []value.Value) error
- func Assert_error(ctx *context.Context, i *interpreter.Interpreter, args ...value.Value) (value.Value, error)
- func Assert_error_Validate(args []value.Value) error
- func Assert_false(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_false_Validate(args []value.Value) error
- func Assert_is_notset(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_is_notset_Validate(args []value.Value) error
- func Assert_match(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_match_Validate(args []value.Value) error
- func Assert_not_contains(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_not_contains_Validate(args []value.Value) error
- func Assert_not_equal(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_not_equal_Validate(args []value.Value) error
- func Assert_not_error(ctx *context.Context, i *interpreter.Interpreter, args ...value.Value) (value.Value, error)
- func Assert_not_error_Validate(args []value.Value) error
- func Assert_not_match(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_not_match_Validate(args []value.Value) error
- func Assert_not_strict_equal(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_not_strict_equal_Validate(args []value.Value) error
- func Assert_not_subroutine_called(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_not_subroutine_called_Validate(args []value.Value) error
- func Assert_restart(ctx *context.Context, i *interpreter.Interpreter, args ...value.Value) (value.Value, error)
- func Assert_restart_Validate(args []value.Value) error
- func Assert_starts_with(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_starts_with_Validate(args []value.Value) error
- func Assert_state(ctx *context.Context, i *interpreter.Interpreter, args ...value.Value) (value.Value, error)
- func Assert_state_Validate(args []value.Value) error
- func Assert_strict_equal(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_strict_equal_Validate(args []value.Value) error
- func Assert_subroutine_called(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_subroutine_called_Validate(args []value.Value) error
- func Assert_true(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Assert_true_Validate(args []value.Value) error
- func Testing_call_subroutine(ctx *context.Context, i *interpreter.Interpreter, args ...value.Value) (value.Value, error)
- func Testing_call_subroutine_Validate(args []value.Value) error
- func Testing_fixed_time(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Testing_fixed_time_Validate(args []value.Value) error
- func Testing_inject_variable(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Testing_inject_variable_Validate(args []value.Value) error
- func Testing_inspect(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Testing_inspect_Validate(args []value.Value) error
- func Testing_mock(ctx *context.Context, defs *Definiions, args ...value.Value) (value.Value, error)
- func Testing_mock_Validate(args []value.Value) error
- func Testing_override_host(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Testing_override_host_Validate(args []value.Value) error
- func Testing_restore_all_mocks(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Testing_restore_all_mocks_Validate(args []value.Value) error
- func Testing_restore_mock(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Testing_restore_mock_Validate(args []value.Value) error
- func Testing_table_MergeProperty(base *ast.TableDeclaration, prop *ast.TableProperty)
- func Testing_table_merge(ctx *context.Context, defs *Definiions, args ...value.Value) (value.Value, error)
- func Testing_table_merge_CompareType(base, merge *ast.TableDeclaration) error
- func Testing_table_merge_Validate(args []value.Value) error
- func Testing_table_set(ctx *context.Context, args ...value.Value) (value.Value, error)
- func Testing_table_set_Validate(args []value.Value) error
- type Counter
- type Definiions
- type Functions
Constants ¶
View Source
const Assert_Name = "assert"
View Source
const Assert_contains_Name = "assert.contains"
View Source
const Assert_ends_with_Name = "assert.ends_with"
View Source
const Assert_equal_Name = "assert.equal"
View Source
const Assert_equal_fold_Name = "assert.equal_fold"
View Source
const Assert_error_Name = "assert.error"
View Source
const Assert_false_Name = "assert.false"
View Source
const Assert_is_notset_Name = "assert.is_notset"
View Source
const Assert_match_Name = "assert.match"
View Source
const Assert_not_contains_Name = "assert.not_contains"
View Source
const Assert_not_equal_Name = "assert.not_equal"
View Source
const Assert_not_error_Name = "assert.not_error"
View Source
const Assert_not_match_Name = "assert.not_match"
View Source
const Assert_not_strict_equal_Name = "assert.not_strict_equal"
View Source
const Assert_not_subroutine_called_Name = "assert.not_subroutine_called"
View Source
const Assert_restart_Name = "assert.restart"
View Source
const Assert_starts_with_Name = "assert.starts_with"
View Source
const Assert_state_Name = "assert.state"
View Source
const Assert_strict_equal_Name = "assert.strict_equal"
View Source
const Assert_subroutine_called_Name = "assert.subroutine_called"
View Source
const Assert_true_Name = "assert.true"
View Source
const Testing_call_subroutine_Name = "testing.call_subroutine"
View Source
const Testing_fixed_time_Name = "testing.fixed_time"
View Source
const Testing_inject_variable_Name = "testing.inject_variable"
View Source
const Testing_inspect_Name = "testing.inspect"
View Source
const Testing_mock_Name = "testing.mock"
View Source
const Testing_override_host_Name = "testing.override_host"
View Source
const Testing_restore_all_mocks_Name = "testing.restore_all_mocks"
View Source
const Testing_restore_mock_Name = "testing.restore_mock"
View Source
const Testing_table_merge_Name = "testing.table_merge"
View Source
const Testing_table_set_Name = "testing.table_set"
Variables ¶
View Source
var Assert_ArgumentTypes = []value.Type{value.BooleanType}
View Source
var Assert_contains_ArgumentTypes = []value.Type{value.StringType, value.StringType}
View Source
var Assert_ends_with_ArgumentTypes = []value.Type{value.StringType, value.StringType}
View Source
var Assert_error_ArgumentTypes = []value.Type{value.IntegerType}
View Source
var Assert_match_ArgumentTypes = []value.Type{value.StringType, value.StringType}
View Source
var Assert_not_contains_ArgumentTypes = []value.Type{value.StringType, value.StringType}
View Source
var Assert_not_match_ArgumentTypes = []value.Type{value.StringType, value.StringType}
View Source
var Assert_starts_with_ArgumentTypes = []value.Type{value.StringType, value.StringType}
View Source
var Assert_state_ArgumentTypes = []value.Type{value.IdentType}
View Source
var Testing_call_subroutine_ArgumentTypes = []value.Type{value.StringType}
View Source
var Testing_mock_ArgumentTypes = []value.Type{value.StringType, value.StringType}
View Source
var Testing_mock_Fastly_reserved = map[string]struct{}{
"vcl_recv": {},
"vcl_hash": {},
"vcl_hit": {},
"vcl_miss": {},
"vcl_pass": {},
"vcl_fetch": {},
"vcl_error": {},
"vcl_deliver": {},
"vcl_log": {},
}
View Source
var Testing_table_set_ArgumentTypes = []value.Type{value.IdentType, value.StringType, value.StringType}
Functions ¶
func Assert_Validate ¶ added in v1.0.1
func Assert_contains ¶
func Assert_contains_Validate ¶ added in v1.0.1
func Assert_ends_with ¶
func Assert_ends_with_Validate ¶ added in v1.0.1
func Assert_equal ¶
func Assert_equal_Validate ¶ added in v1.0.1
func Assert_equal_fold ¶ added in v1.1.1
func Assert_equal_fold_Validate ¶ added in v1.1.1
func Assert_error ¶ added in v1.3.0
func Assert_error( ctx *context.Context, i *interpreter.Interpreter, args ...value.Value, ) (value.Value, error)
func Assert_error_Validate ¶ added in v1.3.0
func Assert_false ¶
func Assert_false_Validate ¶ added in v1.0.1
func Assert_is_notset ¶ added in v1.3.0
func Assert_is_notset_Validate ¶ added in v1.3.0
func Assert_match ¶
func Assert_match_Validate ¶ added in v1.0.1
func Assert_not_contains ¶
func Assert_not_contains_Validate ¶ added in v1.0.1
func Assert_not_equal ¶
func Assert_not_equal_Validate ¶ added in v1.0.1
func Assert_not_error ¶ added in v1.11.0
func Assert_not_error( ctx *context.Context, i *interpreter.Interpreter, args ...value.Value, ) (value.Value, error)
func Assert_not_error_Validate ¶ added in v1.11.0
func Assert_not_match ¶
func Assert_not_match_Validate ¶ added in v1.0.1
func Assert_not_strict_equal ¶
func Assert_not_strict_equal_Validate ¶ added in v1.0.1
func Assert_not_subroutine_called ¶ added in v1.5.0
func Assert_not_subroutine_called_Validate ¶ added in v1.5.0
func Assert_restart ¶ added in v1.3.0
func Assert_restart( ctx *context.Context, i *interpreter.Interpreter, args ...value.Value, ) (value.Value, error)
func Assert_restart_Validate ¶ added in v1.3.0
func Assert_starts_with ¶
func Assert_starts_with_Validate ¶ added in v1.0.1
func Assert_state ¶ added in v1.3.0
func Assert_state( ctx *context.Context, i *interpreter.Interpreter, args ...value.Value, ) (value.Value, error)
func Assert_state_Validate ¶ added in v1.3.0
func Assert_strict_equal ¶
func Assert_strict_equal_Validate ¶ added in v1.0.1
func Assert_subroutine_called ¶ added in v1.3.0
func Assert_subroutine_called_Validate ¶ added in v1.3.0
func Assert_true_Validate ¶ added in v1.0.1
func Testing_call_subroutine ¶
func Testing_call_subroutine( ctx *context.Context, i *interpreter.Interpreter, args ...value.Value, ) (value.Value, error)
func Testing_call_subroutine_Validate ¶ added in v1.0.1
func Testing_fixed_time ¶
func Testing_fixed_time_Validate ¶ added in v1.0.1
func Testing_inject_variable ¶ added in v1.10.0
func Testing_inject_variable_Validate ¶ added in v1.10.0
func Testing_inspect ¶ added in v1.1.0
func Testing_inspect_Validate ¶ added in v1.1.0
func Testing_mock ¶ added in v1.8.0
func Testing_mock_Validate ¶ added in v1.8.0
func Testing_override_host ¶ added in v1.0.1
func Testing_override_host_Validate ¶ added in v1.0.1
func Testing_restore_all_mocks ¶ added in v1.8.0
func Testing_restore_all_mocks_Validate ¶ added in v1.8.0
func Testing_restore_mock ¶ added in v1.8.0
func Testing_restore_mock_Validate ¶ added in v1.8.0
func Testing_table_MergeProperty ¶ added in v1.3.0
func Testing_table_MergeProperty(base *ast.TableDeclaration, prop *ast.TableProperty)
func Testing_table_merge ¶ added in v1.3.0
func Testing_table_merge_CompareType ¶ added in v1.3.0
func Testing_table_merge_CompareType(base, merge *ast.TableDeclaration) error
func Testing_table_merge_Validate ¶ added in v1.3.0
func Testing_table_set ¶ added in v1.3.0
func Testing_table_set_Validate ¶ added in v1.3.0
Types ¶
type Definiions ¶ added in v1.3.0
type Functions ¶ added in v1.3.0
func TestingFunctions ¶
func TestingFunctions(i *interpreter.Interpreter, defs *Definiions, c Counter) Functions
Source Files ¶
- assert.go
- assert_contains.go
- assert_ends_with.go
- assert_equal.go
- assert_equal_fold.go
- assert_error.go
- assert_false.go
- assert_is_notset.go
- assert_match.go
- assert_not_contains.go
- assert_not_equal.go
- assert_not_error.go
- assert_not_match.go
- assert_not_strict_equal.go
- assert_not_subroutine_called.go
- assert_restart.go
- assert_starts_with.go
- assert_state.go
- assert_strict_equal.go
- assert_subroutine_called.go
- assert_true.go
- assertions.go
- testing_call_subroutine.go
- testing_fixed_time.go
- testing_functions.go
- testing_inject_variable.go
- testing_inspect.go
- testing_mock.go
- testing_override_host.go
- testing_restore_all_mocks.go
- testing_restore_mock.go
- testing_table_merge.go
- testing_table_set.go
Click to show internal directories.
Click to hide internal directories.