Should return false as we're submitting an empty flow.
(t *testing.T)
| 82 | |
| 83 | // Should return false as we're submitting an empty flow. |
| 84 | func 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. |
| 92 | func TestFlowCheckingInvalidStage(t *testing.T) { |
nothing calls this directly
no test coverage detected