framework

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Equal Assert = func(t *testing.T, actual interface{}, expected ...interface{}) {
		require.EqualValues(t, expected[0], actual)
	}
	NotEqual = func(t *testing.T, actual interface{}, expected ...interface{}) {
		require.NotEqual(t, expected[0], actual)
	}
	NotNil = func(t *testing.T, actual interface{}, expected ...interface{}) {
		require.NotNil(t, actual)
	}
	Less = func(t *testing.T, actual interface{}, expected ...interface{}) {
		require.Less(t, actual, expected[0])
	}
	LessOrEqual = func(t *testing.T, actual interface{}, expected ...interface{}) {
		require.LessOrEqual(t, actual, expected[0])
	}
	Greater = func(t *testing.T, actual interface{}, expected ...interface{}) {
		require.Greater(t, actual, expected[0])
	}
	GreaterOrEqual = func(t *testing.T, actual interface{}, expected ...interface{}) {
		require.GreaterOrEqual(t, actual, expected[0])
	}
)

Functions

func Case

func Case(desrcibe string, do func())

func Scenario

func Scenario(t *testing.T, describe string, initialize func())

func Setup

func Setup(setup func())

func TearDown

func TearDown(teardown func())

func Verify

func Verify(actual interface{}, assert Assert, expected ...interface{})

Types

type Assert

type Assert func(t *testing.T, actual interface{}, expected ...interface{})

Assert wrapps fucntions in testify/require

Jump to

Keyboard shortcuts

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