()
| 103 | } |
| 104 | |
| 105 | func (c *CacheTestSuite) TestSetErrorOnNonExistingCacheEntity() { |
| 106 | entity := params.ForgeEntity{ |
| 107 | ID: "non-existing-entity", |
| 108 | } |
| 109 | c.Require().NotNil(githubToolsCache) |
| 110 | c.Require().Len(githubToolsCache.entities, 0) |
| 111 | SetGithubToolsCacheError(entity, runnerErrors.ErrNotFound) |
| 112 | |
| 113 | storedEntity, err := GetGithubToolsCache(entity.ID) |
| 114 | c.Require().Error(err) |
| 115 | c.Require().Nil(storedEntity) |
| 116 | } |
| 117 | |
| 118 | func (c *CacheTestSuite) TestTimedOutToolsCache() { |
| 119 | tools := []commonParams.RunnerApplicationDownload{ |
nothing calls this directly
no test coverage detected