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

Function TestUnuseProfileResolveNoneApplied

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

Source from the content-addressed store, hash-verified

75}
76
77func TestUnuseProfileResolveNoneApplied(t *testing.T) {
78 is := is.New(t)
79
80 vcs := &vcsMock{
81 GetFunc: func(_ string) (string, error) {
82 return "", fmt.Errorf("boom")
83 },
84 }
85
86 _, err := unuseProfileResolve(nil, vcs)
87
88 is.True(err != nil)
89 is.Equal(err.Error(), "There is no profile applied to current git repository")
90}

Callers

nothing calls this directly

Calls 1

unuseProfileResolveFunction · 0.85

Tested by

no test coverage detected