(t *testing.T)
| 147 | } |
| 148 | |
| 149 | func TestIsSupportedSecretEntity(t *testing.T) { |
| 150 | tests := []struct { |
| 151 | name string |
| 152 | app App |
| 153 | supportedEntities []SecretEntity |
| 154 | unsupportedEntities []SecretEntity |
| 155 | }{ |
| 156 | { |
| 157 | name: "Actions", |
| 158 | app: Actions, |
| 159 | supportedEntities: []SecretEntity{ |
| 160 | Repository, |
| 161 | Organization, |
| 162 | Environment, |
| 163 | }, |
| 164 | unsupportedEntities: []SecretEntity{ |
| 165 | User, |
| 166 | Unknown, |
| 167 | }, |
| 168 | }, |
| 169 | { |
| 170 | name: "Agents", |
| 171 | app: Agents, |
| 172 | supportedEntities: []SecretEntity{ |
| 173 | Repository, |
| 174 | Organization, |
| 175 | }, |
| 176 | unsupportedEntities: []SecretEntity{ |
| 177 | Environment, |
| 178 | User, |
| 179 | Unknown, |
| 180 | }, |
| 181 | }, |
| 182 | { |
| 183 | name: "Codespaces", |
| 184 | app: Codespaces, |
| 185 | supportedEntities: []SecretEntity{ |
| 186 | User, |
| 187 | Repository, |
| 188 | Organization, |
| 189 | }, |
| 190 | unsupportedEntities: []SecretEntity{ |
| 191 | Environment, |
| 192 | Unknown, |
| 193 | }, |
| 194 | }, |
| 195 | { |
| 196 | name: "Dependabot", |
| 197 | app: Dependabot, |
| 198 | supportedEntities: []SecretEntity{ |
| 199 | Repository, |
| 200 | Organization, |
| 201 | }, |
| 202 | unsupportedEntities: []SecretEntity{ |
| 203 | Environment, |
| 204 | User, |
| 205 | Unknown, |
| 206 | }, |
nothing calls this directly
no test coverage detected