testassist

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package testassist holds testing helpers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyCondition

func VerifyCondition(condition bool, message string, t *testing.T)

VerifyCondition checks if condition is satisfied. If it is not it fails the testing with the provided message

func VerifyEqual

func VerifyEqual(expected, actual, message string, t *testing.T)

VerifyEqual checks whenever the expected argument and the actual one are equal. If they are not it fails the testing with the provided message

Types

type Argument

type Argument struct {
	Name  string
	Value interface{}
}

Argument has some name and a value, it is provided methods during invocation

type TestCase

type TestCase struct {
	Expected interface{}
	Input    interface{}
}

TestCase represents a test case where there is some input and expected output.

Jump to

Keyboard shortcuts

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