apputils

package
v0.0.0-...-b92328e Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const EventRecordFormat = "%v, %v = %v"

Variables

This section is empty.

Functions

func CreateLocatedSupplier

func CreateLocatedSupplier(t *testing.T, illRepo ill_db.IllRepo, illTransId string, supplierId string, supplierSymbol string, status string) ill_db.LocatedSupplier

func CreatePeer

func CreatePeer(t *testing.T, illRepo ill_db.IllRepo, symbol string, url string) ill_db.Peer

func CreatePeerWithMode

func CreatePeerWithMode(t *testing.T, illRepo ill_db.IllRepo, symbol string, url string, brokerMode string) ill_db.Peer

func CreatePeerWithModeAndVendor

func CreatePeerWithModeAndVendor(t *testing.T, illRepo ill_db.IllRepo, symbol string, url string, brokerMode string, vendor directory.EntryVendor, customData directory.Entry) ill_db.Peer

func CreatePgText

func CreatePgText(value string) pgtype.Text

func EventsCompareString

func EventsCompareString(appCtx common.ExtendedContext, eventRepo events.EventRepo, t *testing.T, illId string, expected string)

func EventsToCompareStringFunc

func EventsToCompareStringFunc(appCtx common.ExtendedContext, eventRepo events.EventRepo, t *testing.T, illId string, messageCount int, ignoreState bool, eventFmt func(events.Event) string) string

func GetEventId

func GetEventId(t *testing.T, eventRepo events.EventRepo, illId string, eventType events.EventType, status events.EventStatus, eventName events.EventName) string

func GetEventIdWithData

func GetEventIdWithData(t *testing.T, eventRepo events.EventRepo, illId string, eventType events.EventType, status events.EventStatus, eventName events.EventName, data events.EventData) string

func GetIllTransId

func GetIllTransId(t *testing.T, illRepo ill_db.IllRepo) string

func GetNow

func GetNow() pgtype.Timestamp

func StartAppReturnContext

func StartAppReturnContext(ctx context.Context) app.Context

func StartMockApp

func StartMockApp(mockPort int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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