snapshot_testing

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MatchBuiltin = &ast.Builtin{
	Name: "snapshot_testing.match",
	Decl: types.NewFunction(
		types.Args(
			types.A,
			types.S,
		),
		types.B,
	),
}

Functions

func GlobalRegisterNoop

func GlobalRegisterNoop()

Registers MatchNoopImpl globally.

func MatchNoopImpl

func MatchNoopImpl() rego.BuiltinDyn

MatchNoopImpl will always return true, and should be used everywhere except for actual testing.

func MatchTestImpl

func MatchTestImpl(updateSnapshots bool) rego.BuiltinDyn

Types

This section is empty.

Jump to

Keyboard shortcuts

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