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

Method String

repo.go:25–42  ·  view source on GitHub ↗

String implements Stringer.

()

Source from the content-addressed store, hash-verified

23
24// String implements Stringer.
25func (r RepoType) String() string {
26 switch r {
27 case RepoTypeAdmin:
28 return "Admin"
29 case RepoTypeOrgConfig:
30 return "OrgConfig"
31 case RepoTypeOrg:
32 return "Org"
33 case RepoTypeUserConfig:
34 return "UserConfig"
35 case RepoTypeUser:
36 return "User"
37 case RepoTypeTopLevel:
38 return "TopLevel"
39 default:
40 return fmt.Sprintf("Unknown(%d)", r)
41 }
42}
43
44// RepoLookup represents a repository that has been confirmed in the config and
45// the access level the given user has.

Callers 7

TestContextKeyFunction · 0.45
TestWriteStringFmtFunction · 0.45
ErrorMethod · 0.45
handlePublicKeyMethod · 0.45
cmdRepoActionMethod · 0.45
TestRepoTypeStringerFunction · 0.45
TestAccessLevelStringerFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestContextKeyFunction · 0.36
TestWriteStringFmtFunction · 0.36
TestRepoTypeStringerFunction · 0.36
TestAccessLevelStringerFunction · 0.36