()
| 187 | } |
| 188 | |
| 189 | func (c *CacheTestSuite) TestGetAllGithubCredentials() { |
| 190 | credentials1 := params.ForgeCredentials{ |
| 191 | ID: 1, |
| 192 | } |
| 193 | credentials2 := params.ForgeCredentials{ |
| 194 | ID: 2, |
| 195 | } |
| 196 | SetGithubCredentials(credentials1) |
| 197 | SetGithubCredentials(credentials2) |
| 198 | |
| 199 | cachedCreds := GetAllGithubCredentials() |
| 200 | c.Require().Len(cachedCreds, 2) |
| 201 | c.Require().Contains(cachedCreds, credentials1) |
| 202 | c.Require().Contains(cachedCreds, credentials2) |
| 203 | } |
| 204 | |
| 205 | func (c *CacheTestSuite) TestSetInstanceCache() { |
| 206 | instance := params.Instance{ |
nothing calls this directly
no test coverage detected