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

Function TestStartNextStay_OpenLastModifiedFile

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

Source from the content-addressed store, hash-verified

907}
908
909func TestStartNextStay_OpenLastModifiedFile(t *testing.T) {
910 _, configuration := setup(t)
911 configuration.NextStay = true
912 if runtime.GOOS == "windows" {
913 configuration.OpenCommand = "cmd.exe /C type nul > %s-1"
914 } else {
915 configuration.OpenCommand = "touch %s-1"
916 }
917
918 start(configuration)
919 createFile(t, "file.txt", "contentIrrelevant")
920 assertOnBranch(t, "mob-session")
921 next(configuration)
922
923 start(configuration)
924
925 assertGitStatus(t, GitStatus{
926 "file.txt-1": "??",
927 })
928}
929
930func TestStartNextStay_OpenLastModifiedFile_WhenLastModifiedFilePathContainsSpaces(t *testing.T) {
931 _, configuration := setup(t)

Callers

nothing calls this directly

Calls 6

setupFunction · 0.85
startFunction · 0.85
createFileFunction · 0.85
assertOnBranchFunction · 0.85
nextFunction · 0.85
assertGitStatusFunction · 0.85

Tested by

no test coverage detected