MCPcopy Create free account
hub / github.com/cli/cli / Test_GistClone_flagError

Function Test_GistClone_flagError

pkg/cmd/gist/clone/clone_test.go:116–121  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

114}
115
116func Test_GistClone_flagError(t *testing.T) {
117 _, err := runCloneCommand(nil, "--depth 1 GIST")
118 if err == nil || err.Error() != "unknown flag: --depth\nSeparate git clone flags with '--'." {
119 t.Errorf("unexpected error %v", err)
120 }
121}
122
123func Test_formatRemoteURL(t *testing.T) {
124 type args struct {

Callers

nothing calls this directly

Calls 3

runCloneCommandFunction · 0.70
ErrorfMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected