assert

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal added in v0.3.1

func Equal(expected starlark.Value, actual starlark.Value) error

Equal will check if two values are equal. This function will result in a fatal error if the assertion is incorrect.

@callable: assert.equal @param: expected @starlark.Value @param: actual @starlark.Value

@usage: assert.equal("expected string", some_string)

func Include

func Include() script.Option

Include the sys library in a script environment.

func Library

func Library() script.Library

Library prepares a new regex library for use within a script environment.

func NoError

func NoError(err starlark.Value) error

NoError will check if the passed value is a starlark.NoneType, if not it will error out the script. This function may cause a fatal error if the assertion is incorrect.

@callable: assert.noError @param: err @starlark.Value

@usage: assert.noError(err)

Types

This section is empty.

Jump to

Keyboard shortcuts

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