| 92 | } |
| 93 | |
| 94 | func 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 | |
| 106 | func TestAccessLevelStringer(t *testing.T) { |
| 107 | t.Parallel() |