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

Function TestFlowCheckingShortIncorrectInput

clientapi/routing/register_test.go:117–124  ·  view source on GitHub ↗

Should return false as we're providing fewer stages than are required.

(t *testing.T)

Source from the content-addressed store, hash-verified

115
116// Should return false as we're providing fewer stages than are required.
117func TestFlowCheckingShortIncorrectInput(t *testing.T) {
118 testFlow := []authtypes.LoginType{
119 authtypes.LoginType("stage8"),
120 }
121 if checkFlowCompleted(testFlow, allowedFlows) {
122 t.Error("Incorrect registration flow verification: ", testFlow, ", from allowed flows: ", allowedFlows, ". Should be false.")
123 }
124}
125
126// Should return false as we're providing different stages than are required.
127func TestFlowCheckingExtraneousIncorrectInput(t *testing.T) {

Callers

nothing calls this directly

Calls 2

checkFlowCompletedFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected