function

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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_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 = "assert"
View Source
const Testing_fixed_time_Name = "testing.fixed_time"
View Source
const Testing_inspect_Name = "testing.inspect"
View Source
const Testing_override_host_Name = "testing.override_host"
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_table_merge_ArgumentTypes = []value.Type{value.IdentType, value.IdentType}
View Source
var Testing_table_set_ArgumentTypes = []value.Type{value.IdentType, value.StringType, value.StringType}

Functions

func Assert

func Assert(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_Validate added in v1.0.1

func Assert_Validate(args []value.Value) error

func Assert_contains

func Assert_contains(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_contains_Validate added in v1.0.1

func Assert_contains_Validate(args []value.Value) error

func Assert_ends_with

func Assert_ends_with(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_ends_with_Validate added in v1.0.1

func Assert_ends_with_Validate(args []value.Value) error

func Assert_equal

func Assert_equal(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_equal_Validate added in v1.0.1

func Assert_equal_Validate(args []value.Value) error

func Assert_equal_fold added in v1.1.1

func Assert_equal_fold(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_equal_fold_Validate added in v1.1.1

func Assert_equal_fold_Validate(args []value.Value) error

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_error_Validate(args []value.Value) error

func Assert_false

func Assert_false(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_false_Validate added in v1.0.1

func Assert_false_Validate(args []value.Value) error

func Assert_is_notset added in v1.3.0

func Assert_is_notset(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_is_notset_Validate added in v1.3.0

func Assert_is_notset_Validate(args []value.Value) error

func Assert_match

func Assert_match(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_match_Validate added in v1.0.1

func Assert_match_Validate(args []value.Value) error

func Assert_not_contains

func Assert_not_contains(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_not_contains_Validate added in v1.0.1

func Assert_not_contains_Validate(args []value.Value) error

func Assert_not_equal

func Assert_not_equal(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_not_equal_Validate added in v1.0.1

func Assert_not_equal_Validate(args []value.Value) error

func Assert_not_match

func Assert_not_match(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_not_match_Validate added in v1.0.1

func Assert_not_match_Validate(args []value.Value) error

func Assert_not_strict_equal

func Assert_not_strict_equal(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_not_strict_equal_Validate added in v1.0.1

func Assert_not_strict_equal_Validate(args []value.Value) error

func Assert_not_subroutine_called added in v1.5.0

func Assert_not_subroutine_called(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_not_subroutine_called_Validate added in v1.5.0

func Assert_not_subroutine_called_Validate(args []value.Value) error

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_restart_Validate(args []value.Value) error

func Assert_starts_with

func Assert_starts_with(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_starts_with_Validate added in v1.0.1

func Assert_starts_with_Validate(args []value.Value) error

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_state_Validate(args []value.Value) error

func Assert_strict_equal

func Assert_strict_equal(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_strict_equal_Validate added in v1.0.1

func Assert_strict_equal_Validate(args []value.Value) error

func Assert_subroutine_called added in v1.3.0

func Assert_subroutine_called(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_subroutine_called_Validate added in v1.3.0

func Assert_subroutine_called_Validate(args []value.Value) error

func Assert_true

func Assert_true(ctx *context.Context, args ...value.Value) (value.Value, error)

func Assert_true_Validate added in v1.0.1

func Assert_true_Validate(args []value.Value) error

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_call_subroutine_Validate(args []value.Value) error

func Testing_fixed_time

func Testing_fixed_time(
	ctx *context.Context,
	args ...value.Value,
) (value.Value, error)

func Testing_fixed_time_Validate added in v1.0.1

func Testing_fixed_time_Validate(args []value.Value) error

func Testing_inspect added in v1.1.0

func Testing_inspect(
	ctx *context.Context,
	args ...value.Value,
) (value.Value, error)

func Testing_inspect_Validate added in v1.1.0

func Testing_inspect_Validate(args []value.Value) error

func Testing_override_host added in v1.0.1

func Testing_override_host(
	ctx *context.Context,
	args ...value.Value,
) (value.Value, error)

func Testing_override_host_Validate added in v1.0.1

func Testing_override_host_Validate(args []value.Value) error

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(
	ctx *context.Context,
	defs *Definiions,
	args ...value.Value,
) (value.Value, error)

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_merge_Validate(args []value.Value) error

func Testing_table_set added in v1.3.0

func Testing_table_set(
	ctx *context.Context,
	args ...value.Value,
) (value.Value, error)

func Testing_table_set_Validate added in v1.3.0

func Testing_table_set_Validate(args []value.Value) error

Types

type Counter

type Counter interface {
	Pass()
	Fail()
}

type Definiions added in v1.3.0

type Definiions struct {
	Tables   map[string]*ast.TableDeclaration
	Backends map[string]*value.Backend
	Acls     map[string]*value.Acl
}

type Functions added in v1.3.0

type Functions map[string]*ifn.Function

func TestingFunctions

func TestingFunctions(i *interpreter.Interpreter, defs *Definiions, c Counter) Functions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL