testhelper

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestFunctionsCalled = map[string]bool{
	"TestFunction":      false,
	"OtherTestFunction": false,
}

Functions

func OtherTestFunction

func OtherTestFunction(time float64, money float64)

func ResetTestFunctionsCalled

func ResetTestFunctionsCalled()

func ReturnAnonFunc added in v1.0.5

func ReturnAnonFunc(component string) func(string, float64)

func TestFunction

func TestFunction(component string, val int64, t float64)

Types

type Money added in v1.0.4

type Money struct {
	Data int64
}

func Parse added in v1.0.4

func Parse(value string) (Money, error)

Parse constructs money from a string. If you have an integer value that you know how to interpret, just multiply it up and construct Money{Data: ..} directly.

func (*Money) Scan added in v1.0.4

func (target *Money) Scan(value interface{}) error

func (Money) String added in v1.0.4

func (m Money) String() string

Jump to

Keyboard shortcuts

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