tests

package
v1.10.13 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareTestDataToPayment

func CompareTestDataToPayment(t *testing.T, expected *TestData, actual *payment.Record)

func RunTests

func RunTests(t *testing.T, s payment.Store, teardown func())

Types

type TestData

type TestData struct {
	Timestamp   time.Time
	Source      string
	Destination string

	ExchangeRate     float64
	ExchangeCurrency string

	Quantity        uint64
	BookCost        float64
	MarketValue     float64
	UnrealizedGains float64
}

Jump to

Keyboard shortcuts

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