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

Function TestStartNextPushManualCommitsFeatureBranch

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

Source from the content-addressed store, hash-verified

1638}
1639
1640func TestStartNextPushManualCommitsFeatureBranch(t *testing.T) {
1641 _, configuration := setup(t)
1642
1643 setWorkingDir(tempDir + "/local")
1644
1645 git("checkout", "-b", "feature1")
1646 git("push", "origin", "feature1", "--set-upstream")
1647 assertOnBranch(t, "feature1")
1648 start(configuration)
1649 assertOnBranch(t, "mob/feature1")
1650
1651 createFileAndCommitIt(t, "example.txt", "contentIrrelevant", "asdf")
1652 next(configuration)
1653
1654 setWorkingDir(tempDir + "/localother")
1655 git("fetch")
1656 git("checkout", "feature1")
1657 start(configuration)
1658 assertFileExist(t, "example.txt")
1659}
1660
1661func TestConflictingMobSessions(t *testing.T) {
1662 _, configuration := setup(t)

Callers

nothing calls this directly

Calls 8

setupFunction · 0.85
setWorkingDirFunction · 0.85
gitFunction · 0.85
assertOnBranchFunction · 0.85
startFunction · 0.85
createFileAndCommitItFunction · 0.85
nextFunction · 0.85
assertFileExistFunction · 0.85

Tested by

no test coverage detected