testutils

package
v1.0.40 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package testutils provides functions to use in complex tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExprTester

func ExprTester(t *testing.T, cases [][]byte, expressions ...string)

func ExprTesterFalse

func ExprTesterFalse(t *testing.T, errorCases [][]byte, expression string)

func ExprTesterFalseWithExclude added in v1.0.26

func ExprTesterFalseWithExclude(t *testing.T, errorCases [][]byte, expression ExpressionPair)

func ExprTesterWithExclude added in v1.0.26

func ExprTesterWithExclude(t *testing.T, cases [][]byte, expressions ...ExpressionPair)

Types

type ExpressionPair added in v1.0.26

type ExpressionPair struct {
	Pattern        string
	ExcludePattern string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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