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

Function TestResetCommit

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

Source from the content-addressed store, hash-verified

430}
431
432func TestResetCommit(t *testing.T) {
433 output, configuration := setup(t)
434 start(configuration)
435 createFile(t, "example.txt", "contentIrrelevant")
436 next(configuration)
437 assertMobSessionBranches(t, configuration, "mob-session")
438
439 reset(configuration)
440
441 assertOutputContains(t, output, "mob reset --delete-remote-wip-branch")
442 assertMobSessionBranches(t, configuration, "mob-session")
443}
444
445func TestResetDeleteRemoteWipBranchCommit(t *testing.T) {
446 _, 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