gdm_test

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthModeSelectedEvent

func AuthModeSelectedEvent(authModeID string) *gdm.EventData

AuthModeSelectedEvent generates a AuthModeSelected event.

func ChangeStageEvent

func ChangeStageEvent(stage proto.Stage) *gdm.EventData

ChangeStageEvent generates a ChangeStage event.

func DataToJSON

func DataToJSON(t *testing.T, data *gdm.Data) string

DataToJSON is a test helper function to convert GDM data to JSON.

func EventsGroupBegin

func EventsGroupBegin() *gdm.EventData

EventsGroupBegin returns a fake gdm.EventData that allows to begin a group multiple events so that it's possible to use this as an header to tell the test module handler that we should respond to an event with multiple events starting from the next one.

func EventsGroupEnd

func EventsGroupEnd() *gdm.EventData

EventsGroupEnd returns a fake gdm.EventData that allows to end a group multiple events so that it's possible to use this as a footer to tell the test module handler that we should respond to an event with multiple events finishing with the previous one.

func IsAuthenticatedCancelledEvent

func IsAuthenticatedCancelledEvent() *gdm.EventData

IsAuthenticatedCancelledEvent generates a IsAuthenticated event.

func IsAuthenticatedEvent

func IsAuthenticatedEvent(item authd.IARequestAuthenticationDataItem) *gdm.EventData

IsAuthenticatedEvent generates a IsAuthenticated event.

func RequireEqualData

func RequireEqualData(t *testing.T, want any, actual any, args ...any)

RequireEqualData ensures that data is equal by checking the marshalled values.

func ReselectAuthMode

func ReselectAuthMode() *gdm.EventData

ReselectAuthMode generates a ReselectAuthMode event.

func SelectBrokerEvent

func SelectBrokerEvent(brokerID string) *gdm.EventData

SelectBrokerEvent generates a SelectBroker event.

func SelectUserEvent

func SelectUserEvent(username string) *gdm.EventData

SelectUserEvent generates a SelectUser event.

Types

This section is empty.

Jump to

Keyboard shortcuts

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