(t *testing.T)
| 907 | } |
| 908 | |
| 909 | func 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 | |
| 930 | func TestStartNextStay_OpenLastModifiedFile_WhenLastModifiedFilePathContainsSpaces(t *testing.T) { |
| 931 | _, configuration := setup(t) |
nothing calls this directly
no test coverage detected