test

package
v0.0.0-...-f597de0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckBool

func CheckBool(t *testing.T, descriptor string, expected bool, result bool)

CheckBool checks expected and result boolean are equals. If not equals it sets the testing.T in error and prints an error message containing the field descriptor.

func CheckFloat

func CheckFloat(t *testing.T, descriptor string, expected float64, result float64)

CheckFloat checks expected and result float64 are equals. As float are by nature approximated this method is known fragile.

func CheckInt64

func CheckInt64(t *testing.T, descriptor string, expected int64, result int64)

CheckInt64 checks expected and result int64 are equals. If not equals it sets the testing.T in error and prints an error message containing the field descriptor.

func CheckString

func CheckString(t *testing.T, descriptor string, expected string, result string)

CheckString checks expected and result string are equals. If not equals it sets the testing.T in error and prints an error message containing the field descriptor.

func CheckTime

func CheckTime(t *testing.T, descriptor string, expected time.Time, result time.Time)

CheckTime checks expected and result time.Time are equals. If not equals it sets the testing.T in error and prints an error message containing the field descriptor.

func GetDate

func GetDate(t *testing.T, date string) time.Time

GetDate returns a date in format YYYY-MM-DD.

Types

This section is empty.

Jump to

Keyboard shortcuts

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