MCPcopy
hub / github.com/cli/cli / TestIsPinnedLocalExtension

Function TestIsPinnedLocalExtension

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

Source from the content-addressed store, hash-verified

173}
174
175func TestIsPinnedLocalExtension(t *testing.T) {
176 tempDir := t.TempDir()
177 extPath := filepath.Join(tempDir, "extensions", "gh-local", "gh-local")
178 assert.NoError(t, stubLocalExtension(tempDir, extPath))
179 e := &Extension{
180 kind: LocalKind,
181 path: extPath,
182 }
183
184 assert.False(t, e.IsPinned())
185}

Callers

nothing calls this directly

Calls 3

IsPinnedMethod · 0.95
stubLocalExtensionFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected