MCPcopy Index your code
hub / github.com/cli/cli / TestOwnerLocalExtension

Function TestOwnerLocalExtension

pkg/cmd/extension/extension_test.go:55–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

53}
54
55func TestOwnerLocalExtension(t *testing.T) {
56 tempDir := t.TempDir()
57 extPath := filepath.Join(tempDir, "extensions", "gh-local", "gh-local")
58 assert.NoError(t, stubLocalExtension(tempDir, extPath))
59 e := &Extension{
60 kind: LocalKind,
61 path: extPath,
62 }
63
64 assert.Equal(t, "", e.Owner())
65}
66
67func TestOwnerBinaryExtension(t *testing.T) {
68 tempDir := t.TempDir()

Callers

nothing calls this directly

Calls 4

OwnerMethod · 0.95
stubLocalExtensionFunction · 0.85
JoinMethod · 0.80
EqualMethod · 0.80

Tested by

no test coverage detected