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

Method TestGetRepositoryByID

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

Source from the content-addressed store, hash-verified

673}
674
675func (s *RepoTestSuite) TestGetRepositoryByID() {
676 repo, err := s.Store.GetRepositoryByID(s.adminCtx, s.Fixtures.Repos[0].ID)
677
678 s.Require().Nil(err)
679 s.Require().Equal(s.Fixtures.Repos[0].ID, repo.ID)
680}
681
682func (s *RepoTestSuite) TestGetRepositoryByIDInvalidRepoID() {
683 _, err := s.Store.GetRepositoryByID(s.adminCtx, "dummy-repo-id")

Callers

nothing calls this directly

Calls 1

GetRepositoryByIDMethod · 0.65

Tested by

no test coverage detected