util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, debugNum int64, expected, candidate interface{}, printArgs ...interface{})

func AssertIsNil

func AssertIsNil(t *testing.T, debugNum int64, candidate interface{}, printArgs ...interface{})

func AssertIsNotNil

func AssertIsNotNil(t *testing.T, debugNum int64, candidate interface{}, printArgs ...interface{})

func AssertNoError

func AssertNoError(t *testing.T, debugNum int64, candidateErr error, printArgs ...interface{})

func AssertNotEqual

func AssertNotEqual(t *testing.T, debugNum int64, shouldNotBe, candidate interface{}, printArgs ...interface{})

func CurrentFunction

func CurrentFunction() string

func Trace

func Trace(functionName string, startTime time.Time)

Usage example: copy paste the two lines to the beginning of any function

log.Println(current_function(), "entering")
defer trace(current_function(), time.Now())

Types

This section is empty.

Jump to

Keyboard shortcuts

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