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

Function TestStartCreateOnPushedFeatureBranchWhichIsAhead

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

Source from the content-addressed store, hash-verified

739}
740
741func TestStartCreateOnPushedFeatureBranchWhichIsAhead(t *testing.T) {
742 _, configuration := setup(t)
743 checkoutAndPushBranch("feature1")
744 createFile(t, "file.txt", "contentIrrelevant")
745 git("add", ".")
746 git("commit", "-m", "commit ahead")
747 git("push")
748 git("reset", "--hard", "HEAD~1")
749
750 configuration.StartCreate = true
751 start(configuration)
752
753 assertOnBranch(t, "mob/feature1")
754 assertCommitLogContainsMessage(t, "mob/feature1", "commit ahead")
755}
756
757func TestStartCreateOnPushedFeatureBranchWhichIsBehind(t *testing.T) {
758 output, configuration := setup(t)

Callers

nothing calls this directly

Calls 7

setupFunction · 0.85
checkoutAndPushBranchFunction · 0.85
createFileFunction · 0.85
gitFunction · 0.85
startFunction · 0.85
assertOnBranchFunction · 0.85

Tested by

no test coverage detected