(t *testing.T)
| 242 | } |
| 243 | |
| 244 | func TestStartWithMultipleExistingBranches(t *testing.T) { |
| 245 | output, configuration := setup(t) |
| 246 | |
| 247 | configuration.WipBranchQualifier = "green" |
| 248 | start(configuration) |
| 249 | assertOnBranch(t, "mob/master-green") |
| 250 | next(configuration) |
| 251 | assertOnBranch(t, "master") |
| 252 | |
| 253 | configuration.WipBranchQualifier = "" |
| 254 | start(configuration) |
| 255 | assertOnBranch(t, "mob-session") |
| 256 | assertOutputContains(t, output, "preexisting wip branches have been detected") |
| 257 | assertOutputContains(t, output, "mob/master-green") |
| 258 | } |
| 259 | |
| 260 | func TestStartWithMultipleExistingBranchesAndEmptyWipBranchQualifier(t *testing.T) { |
| 261 | output, configuration := setup(t) |
nothing calls this directly
no test coverage detected