(t *testing.T)
| 23 | type GitStatus = map[string]string |
| 24 | |
| 25 | func TestCurrentCliName(t *testing.T) { |
| 26 | equals(t, "mob", currentCliName("mob")) |
| 27 | equals(t, "mob", currentCliName("mob.exe")) |
| 28 | equals(t, "mob", currentCliName("./mob")) |
| 29 | equals(t, "mob", currentCliName("folder/mob")) |
| 30 | // Check with platform specific path separators as well |
| 31 | equals(t, "mob", currentCliName(filepath.Join("folder", "another", "mob.exe"))) |
| 32 | equals(t, "other_name", currentCliName(filepath.Join("folder", "another", "other_name"))) |
| 33 | } |
| 34 | |
| 35 | func TestDetermineBranches(t *testing.T) { |
| 36 | configuration := config.GetDefaultConfiguration() |
nothing calls this directly
no test coverage detected