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

Function TestCurrentCliName

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

Source from the content-addressed store, hash-verified

23type GitStatus = map[string]string
24
25func 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
35func TestDetermineBranches(t *testing.T) {
36 configuration := config.GetDefaultConfiguration()

Callers

nothing calls this directly

Calls 2

equalsFunction · 0.85
currentCliNameFunction · 0.85

Tested by

no test coverage detected