MCPcopy Create free account
hub / github.com/daodst/chat / TestFlowCheckingEmptyFlow

Function TestFlowCheckingEmptyFlow

clientapi/routing/register_test.go:84–89  ·  view source on GitHub ↗

Should return false as we're submitting an empty flow.

(t *testing.T)

Source from the content-addressed store, hash-verified

82
83// Should return false as we're submitting an empty flow.
84func TestFlowCheckingEmptyFlow(t *testing.T) {
85 testFlow := []authtypes.LoginType{}
86 if checkFlowCompleted(testFlow, allowedFlows) {
87 t.Error("Incorrect registration flow verification: ", testFlow, ", from allowed flows: ", allowedFlows, ". Should be false.")
88 }
89}
90
91// Should return false as we've completed a stage that isn't in any allowed flow.
92func TestFlowCheckingInvalidStage(t *testing.T) {

Callers

nothing calls this directly

Calls 2

checkFlowCompletedFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected