environment_testing

package
v2.0.0-...-4b7107c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGetBoolTest

func RunGetBoolTest(t *testing.T, name string, f TestBoolFunc, value string, err error, expectedValue bool)

RunGetBoolTest - Run the boolean test

func RunGetBoolpTest

func RunGetBoolpTest(t *testing.T, name string, f TestBoolpFunc, value string, err error, expectedValue bool)

RunGetBoolpTest - Run the boolean (pointer) test

func RunGetFloatTest

func RunGetFloatTest(t *testing.T, name string, f TestFloatFunc, value string, err error, expectedValue float64)

RunGetFloatTest - Run the Float test

func RunGetFloatpTest

func RunGetFloatpTest(t *testing.T, name string, f TestFloatpFunc, value string, err error, expectedValue float64)

RunGetFloatpTest - Run the Float (pointer) test

func RunGetIntTest

func RunGetIntTest(t *testing.T, name string, f TestIntFunc, value string, err error, expectedValue int)

RunGetIntTest - Run the Int test

func RunGetIntpTest

func RunGetIntpTest(t *testing.T, name string, f TestIntpFunc, value string, err error, expectedValue int)

RunGetIntpTest - Run the Int (pointer) test

func RunGetStringTest

func RunGetStringTest(t *testing.T, name string, f TestStringFunc, value string, err error, expectedValue string)

RunGetStringTest - Run the boolean (pointer) test

func RunGetStringpTest

func RunGetStringpTest(t *testing.T, name string, f TestStringpFunc, value string, err error, expectedValue string)

RunGetStringpTest - Run the boolean test

func RunRequiredBoolTest

func RunRequiredBoolTest(t *testing.T, name string, f TestBoolFunc, err error)

func RunRequiredBoolpTest

func RunRequiredBoolpTest(t *testing.T, name string, f TestBoolFunc, err error)

func RunRequiredFloatTest

func RunRequiredFloatTest(t *testing.T, name string, f TestFloatFunc, err error)

func RunRequiredFloatpTest

func RunRequiredFloatpTest(t *testing.T, name string, f TestFloatFunc, err error)

func RunRequiredIntTest

func RunRequiredIntTest(t *testing.T, name string, f TestIntFunc, err error)

func RunRequiredIntpTest

func RunRequiredIntpTest(t *testing.T, name string, f TestIntpFunc, err error)

func RunRequiredStringTest

func RunRequiredStringTest(t *testing.T, name string, f TestStringFunc, err error)

func RunRequiredStringpTest

func RunRequiredStringpTest(t *testing.T, name string, f TestStringpFunc, err error)

func RunSanitizedFloatTest

func RunSanitizedFloatTest(t *testing.T, f TestFloatSanityFunc, name, value string, err error, expectedValue, min, max float64)

RunSanitizedFloatTest - Run the SanitizedFloat test

func RunSanitizedFloatpTest

func RunSanitizedFloatpTest(t *testing.T, f TestFloatpSanityFunc, name, value string, err error, expectedValue, min, max float64)

RunSanitizedFloatpTest - Run the SanitizedFloat (pointer) test

func RunSanitizedIntTest

func RunSanitizedIntTest(t *testing.T, f TestIntSanityFunc, name, value string, err error, expectedValue, min, max int)

RunSanitizedIntTest - Run the SanitizedInt test

func RunSanitizedIntpTest

func RunSanitizedIntpTest(t *testing.T, f TestIntpSanityFunc, name, value string, err error, expectedValue, min, max int)

RunSanitizedIntpTest - Run the SanitizedInt (pointer) test

func RunSanitizedStringTest

func RunSanitizedStringTest(t *testing.T, f TestStringSanityFunc, err error, name, value, pattern, expectedValue string)

RunSanitizedStringTest - Run the SanitizedString test

func RunSanitizedStringpTest

func RunSanitizedStringpTest(t *testing.T, f TestStringpSanityFunc, err error, name, value, pattern, expectedValue string)

RunSanitizedStringpTest - Run the SanitizedStringp (pointer) test

func Setup

func Setup(t *testing.T, n string, v string)

Setup - test function that creates environment variable (for testing only)

func TearDown

func TearDown(t *testing.T, n string)

TearDown - unset the environment variable

Types

type TestBoolFunc

type TestBoolFunc func(arg string) (bool, error)

TestBoolFunc - function pointer for Bool

type TestBoolpFunc

type TestBoolpFunc func(arg *string) (bool, error)

TestBoolpFunc - function pointer for Boolp

type TestFloatFunc

type TestFloatFunc func(arg string) (float64, error)

TestFloatFunc - function pointer for Float

type TestFloatSanityFunc

type TestFloatSanityFunc func(arg string, min float64, max float64) (float64, error)

TestFloatSanityFunc - function pointer for Float

type TestFloatpFunc

type TestFloatpFunc func(arg *string) (float64, error)

TestFloatpFunc - function pointer for Float

type TestFloatpSanityFunc

type TestFloatpSanityFunc func(arg *string, min float64, max float64) (float64, error)

TestFloatpSanityFunc - function pointer for Float

type TestIntFunc

type TestIntFunc func(arg string) (int, error)

TestIntFunc - function pointer for Int

type TestIntSanityFunc

type TestIntSanityFunc func(arg string, min int, max int) (int, error)

TestIntSanityFunc - function pointer for int

type TestIntpFunc

type TestIntpFunc func(arg *string) (int, error)

TestIntpFunc - function pointer for Int

type TestIntpSanityFunc

type TestIntpSanityFunc func(arg *string, min int, max int) (int, error)

TestIntpSanityFunc - function pointer for int

type TestStringFunc

type TestStringFunc func(arg string) (string, error)

TestStringFunc - function pointer for strings

type TestStringSanityFunc

type TestStringSanityFunc func(arg string, pattern string) (string, error)

TestStringSanityFunc - function pointer for string

type TestStringpFunc

type TestStringpFunc func(arg *string) (string, error)

TestStringpFunc - function pointer for stringp

type TestStringpSanityFunc

type TestStringpSanityFunc func(arg *string, pattern *string) (string, error)

TestStringpSanityFunc - function pointer for string

Jump to

Keyboard shortcuts

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