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

Method TestGetRepository

database/sql/repositories_test.go:343–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

341}
342
343func (s *RepoTestSuite) TestGetRepository() {
344 repo, err := s.Store.GetRepository(s.adminCtx, s.Fixtures.Repos[0].Owner, s.Fixtures.Repos[0].Name, s.Fixtures.Repos[0].Endpoint.Name)
345
346 s.Require().Nil(err)
347 s.Require().Equal(s.Fixtures.Repos[0].Owner, repo.Owner)
348 s.Require().Equal(s.Fixtures.Repos[0].Name, repo.Name)
349 s.Require().Equal(s.Fixtures.Repos[0].ID, repo.ID)
350}
351
352func (s *RepoTestSuite) TestGetRepositoryCaseInsensitive() {
353 repo, err := s.Store.GetRepository(s.adminCtx, "TeSt-oWnEr-1", "TeSt-rEpO-1", "github.com")

Callers

nothing calls this directly

Calls 1

GetRepositoryMethod · 0.65

Tested by

no test coverage detected