mctest

package module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 3 Imported by: 0

README

mctest | github.com/abbeymart/mctestgo

  • Simple Test Package / Module
  • See test file for different test cases / scenarios and usage

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEquals

func AssertEquals(t *testing.T, expr interface{}, result interface{}, message string) string

AssertEquals ***** functions ***** assert equals

func AssertNotEquals

func AssertNotEquals(t *testing.T, expr interface{}, result interface{}, message string) string

AssertNotEquals assert not equals

func AssertNotStrictEquals

func AssertNotStrictEquals(t *testing.T, expr interface{}, result interface{}, message string) string

AssertNotStrictEquals assert strict equals => deep equality check through stringified values

func AssertStrictEquals

func AssertStrictEquals(t *testing.T, expr interface{}, result interface{}, message string) string

AssertStrictEquals assert not strict equals => deep equality check through stringified values

func McTest

func McTest(options OptionValue)

func PostTestResult

func PostTestResult()

Types

type OptionValue

type OptionValue struct {
	Name     string
	TestFunc TestFunction
	Before   string
	After    string
}

OptionValue make params public

type TestFunction

type TestFunction func()

TestFunction ***** types *****

Jump to

Keyboard shortcuts

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