Should return false as we're providing fewer stages than are required.
(t *testing.T)
| 115 | |
| 116 | // Should return false as we're providing fewer stages than are required. |
| 117 | func 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. |
| 127 | func TestFlowCheckingExtraneousIncorrectInput(t *testing.T) { |
nothing calls this directly
no test coverage detected