MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / TestResetCommitBranch

Function TestResetCommitBranch

mob_test.go:459–471  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

457}
458
459func TestResetCommitBranch(t *testing.T) {
460 output, configuration := setup(t)
461 configuration.WipBranchQualifier = "green"
462 start(configuration)
463 createFile(t, "example.txt", "contentIrrelevant")
464 next(configuration)
465 assertMobSessionBranches(t, configuration, "mob/master-green")
466
467 reset(configuration)
468
469 assertOutputContains(t, output, "mob reset --delete-remote-wip-branch")
470 assertMobSessionBranches(t, configuration, "mob/master-green")
471}
472
473func TestResetDeleteRemoteWipBranchCommitBranch(t *testing.T) {
474 _, configuration := setup(t)

Callers

nothing calls this directly

Calls 7

setupFunction · 0.85
startFunction · 0.85
createFileFunction · 0.85
nextFunction · 0.85
assertMobSessionBranchesFunction · 0.85
resetFunction · 0.85
assertOutputContainsFunction · 0.85

Tested by

no test coverage detected