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

Function TestOfficialExtension_Repository

pkg/extensions/official_test.go:9–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestOfficialExtension_Repository(t *testing.T) {
10 ext := &OfficialExtension{Name: "stack", Owner: "github", Repo: "gh-stack"}
11 repo := ext.Repository()
12 assert.Equal(t, "github", repo.RepoOwner())
13 assert.Equal(t, "gh-stack", repo.RepoName())
14 assert.Equal(t, "github.com", repo.RepoHost())
15}
16
17func TestIsOfficial(t *testing.T) {
18 tests := []struct {

Callers

nothing calls this directly

Calls 5

RepositoryMethod · 0.95
EqualMethod · 0.80
RepoOwnerMethod · 0.65
RepoNameMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected