MCPcopy Create free account
hub / github.com/belak/gitdir / TestRepoTypeStringer

Function TestRepoTypeStringer

repo_test.go:94–104  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

92}
93
94func TestRepoTypeStringer(t *testing.T) {
95 t.Parallel()
96
97 assert.Equal(t, "Admin", RepoTypeAdmin.String())
98 assert.Equal(t, "OrgConfig", RepoTypeOrgConfig.String())
99 assert.Equal(t, "Org", RepoTypeOrg.String())
100 assert.Equal(t, "UserConfig", RepoTypeUserConfig.String())
101 assert.Equal(t, "User", RepoTypeUser.String())
102 assert.Equal(t, "TopLevel", RepoTypeTopLevel.String())
103 assert.Equal(t, "Unknown(42)", RepoType(42).String())
104}
105
106func TestAccessLevelStringer(t *testing.T) {
107 t.Parallel()

Callers

nothing calls this directly

Calls 2

RepoTypeTypeAlias · 0.85
StringMethod · 0.45

Tested by

no test coverage detected