MCPcopy Create free account
hub / github.com/dotzero/git-profile / TestUnuseProfileResolveCurrent

Function TestUnuseProfileResolveCurrent

cmd/unuse_test.go:61–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestUnuseProfileResolveCurrent(t *testing.T) {
62 is := is.New(t)
63
64 vcs := &vcsMock{
65 GetFunc: func(key string) (string, error) {
66 is.Equal(key, currentProfileKey)
67 return "home", nil
68 },
69 }
70
71 profile, err := unuseProfileResolve(nil, vcs)
72
73 is.NoErr(err)
74 is.Equal(profile, "home")
75}
76
77func TestUnuseProfileResolveNoneApplied(t *testing.T) {
78 is := is.New(t)

Callers

nothing calls this directly

Calls 1

unuseProfileResolveFunction · 0.85

Tested by

no test coverage detected