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

Function TestBothCreateNonemptyCommitWithNext

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

Source from the content-addressed store, hash-verified

1509}
1510
1511func TestBothCreateNonemptyCommitWithNext(t *testing.T) {
1512 _, configuration := setup(t)
1513
1514 setWorkingDir(tempDir + "/local")
1515 start(configuration)
1516 createFile(t, "file1.txt", "contentIrrelevant")
1517
1518 setWorkingDir(tempDir + "/localother")
1519 start(configuration)
1520 createFile(t, "file2.txt", "contentIrrelevant")
1521
1522 setWorkingDir(tempDir + "/local")
1523 next(configuration)
1524
1525 setWorkingDir(tempDir + "/localother")
1526 // next(configuration) not possible, would fail
1527 git("pull")
1528 next(configuration)
1529
1530 setWorkingDir(tempDir + "/local")
1531 start(configuration)
1532 assertFileExist(t, "file1.txt")
1533 assertFileExist(t, "file2.txt")
1534
1535 setWorkingDir(tempDir + "/localother")
1536 start(configuration)
1537 assertFileExist(t, "file1.txt")
1538 assertFileExist(t, "file2.txt")
1539}
1540
1541func TestNothingToCommitCreatesNoCommits(t *testing.T) {
1542 _, configuration := setup(t)

Callers

nothing calls this directly

Calls 7

setupFunction · 0.85
setWorkingDirFunction · 0.85
startFunction · 0.85
createFileFunction · 0.85
nextFunction · 0.85
gitFunction · 0.85
assertFileExistFunction · 0.85

Tested by

no test coverage detected