(t *testing.T)
| 1133 | } |
| 1134 | |
| 1135 | func Test_getRepoVisibilityOptions(t *testing.T) { |
| 1136 | tests := []struct { |
| 1137 | name string |
| 1138 | owner string |
| 1139 | want []string |
| 1140 | }{ |
| 1141 | { |
| 1142 | name: "user repo", |
| 1143 | owner: "", |
| 1144 | want: []string{"Public", "Private"}, |
| 1145 | }, |
| 1146 | { |
| 1147 | name: "org repo", |
| 1148 | owner: "fooOrg", |
| 1149 | want: []string{"Public", "Private", "Internal"}, |
| 1150 | }, |
| 1151 | } |
| 1152 | for _, tt := range tests { |
| 1153 | t.Run(tt.name, func(t *testing.T) { |
| 1154 | assert.Equal(t, tt.want, getRepoVisibilityOptions(tt.owner)) |
| 1155 | }) |
| 1156 | } |
| 1157 | } |
nothing calls this directly
no test coverage detected