()
| 500 | } |
| 501 | |
| 502 | func (s *RepoTestSuite) TestDeleteRepository() { |
| 503 | err := s.Store.DeleteRepository(s.adminCtx, s.Fixtures.Repos[0].ID) |
| 504 | |
| 505 | s.Require().Nil(err) |
| 506 | _, err = s.Store.GetRepositoryByID(s.adminCtx, s.Fixtures.Repos[0].ID) |
| 507 | s.Require().NotNil(err) |
| 508 | s.Require().Equal("error fetching repo: not found", err.Error()) |
| 509 | } |
| 510 | |
| 511 | func (s *RepoTestSuite) TestDeleteRepositoryInvalidRepoID() { |
| 512 | err := s.Store.DeleteRepository(s.adminCtx, "dummy-repo-id") |
nothing calls this directly
no test coverage detected