testutil

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, actual interface{}, expected interface{}) bool

func AssertEqualsJson

func AssertEqualsJson(t *testing.T, rule interface{}, expected string) bool

func LoadJson

func LoadJson(itemPath string) (map[string]interface{}, error)

func LoadRule

func LoadRule(itemPath string) (*model2.Rule, error)

func SetTestWorkingDirectory

func SetTestWorkingDirectory()

func Setup

func Setup()

func SetupTestApplicationDatabase

func SetupTestApplicationDatabase(t *testing.T) *db.Database

func TearDownTestApplicationDatabase

func TearDownTestApplicationDatabase(t *testing.T, database *db.Database)

Types

This section is empty.

Jump to

Keyboard shortcuts

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