MCPcopy Create free account
hub / github.com/cloudbase/garm / TestGetInexistentCache

Method TestGetInexistentCache

cache/cache_test.go:142–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func (c *CacheTestSuite) TestGetInexistentCache() {
143 c.Require().NotNil(githubToolsCache)
144 c.Require().Len(githubToolsCache.entities, 0)
145 cachedTools, err := GetGithubToolsCache(c.entity.ID)
146 c.Require().Error(err)
147 c.Require().Nil(cachedTools)
148}
149
150func (c *CacheTestSuite) TestSetGithubCredentials() {
151 credentials := params.ForgeCredentials{

Callers

nothing calls this directly

Calls 3

GetGithubToolsCacheFunction · 0.85
LenMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected