Documentation
¶
Index ¶
- func AuthModeSelectedEvent(authModeID string) *gdm.EventData
- func ChangeStageEvent(stage proto.Stage) *gdm.EventData
- func DataToJSON(t *testing.T, data *gdm.Data) string
- func EventsGroupBegin() *gdm.EventData
- func EventsGroupEnd() *gdm.EventData
- func IsAuthenticatedCancelledEvent() *gdm.EventData
- func IsAuthenticatedEvent(item authd.IARequestAuthenticationDataItem) *gdm.EventData
- func RequireEqualData(t *testing.T, want any, actual any, args ...any)
- func ReselectAuthMode() *gdm.EventData
- func SelectBrokerEvent(brokerID string) *gdm.EventData
- func SelectUserEvent(username string) *gdm.EventData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthModeSelectedEvent ¶
AuthModeSelectedEvent generates a AuthModeSelected event.
func ChangeStageEvent ¶
ChangeStageEvent generates a ChangeStage event.
func DataToJSON ¶
DataToJSON is a test helper function to convert GDM data to JSON.
func EventsGroupBegin ¶
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 ¶
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 ¶
IsAuthenticatedCancelledEvent generates a IsAuthenticated event.
func IsAuthenticatedEvent ¶
func IsAuthenticatedEvent(item authd.IARequestAuthenticationDataItem) *gdm.EventData
IsAuthenticatedEvent generates a IsAuthenticated event.
func RequireEqualData ¶
RequireEqualData ensures that data is equal by checking the marshalled values.
func ReselectAuthMode ¶
ReselectAuthMode generates a ReselectAuthMode event.
func SelectBrokerEvent ¶
SelectBrokerEvent generates a SelectBroker event.
func SelectUserEvent ¶
SelectUserEvent generates a SelectUser event.
Types ¶
This section is empty.