Should return false as we're providing different stages than are required.
(t *testing.T)
| 125 | |
| 126 | // Should return false as we're providing different stages than are required. |
| 127 | func TestFlowCheckingExtraneousIncorrectInput(t *testing.T) { |
| 128 | testFlow := []authtypes.LoginType{ |
| 129 | authtypes.LoginType("stage8"), |
| 130 | authtypes.LoginType("stage9"), |
| 131 | authtypes.LoginType("stage10"), |
| 132 | authtypes.LoginType("stage11"), |
| 133 | } |
| 134 | if checkFlowCompleted(testFlow, allowedFlows) { |
| 135 | t.Error("Incorrect registration flow verification: ", testFlow, ", from allowed flows: ", allowedFlows, ". Should be false.") |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | // Completed flows stages should always be a valid slice header. |
| 140 | // TestEmptyCompletedFlows checks that sessionsDict returns a slice & not nil. |
nothing calls this directly
no test coverage detected