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

Method TestGetUserNotFound

database/sql/users_test.go:229–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227}
228
229func (s *UserTestSuite) TestGetUserNotFound() {
230 _, err := s.Store.GetUser(context.Background(), "dummy-user")
231
232 s.Require().NotNil(err)
233 s.Require().Equal("error fetching user: not found", err.Error())
234}
235
236func (s *UserTestSuite) TestGetUserByID() {
237 user, err := s.Store.GetUserByID(context.Background(), s.Fixtures.Users[0].ID)

Callers

nothing calls this directly

Calls 2

GetUserMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected