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

Method TestGetUserByIDNotFound

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

Source from the content-addressed store, hash-verified

241}
242
243func (s *UserTestSuite) TestGetUserByIDNotFound() {
244 _, err := s.Store.GetUserByID(context.Background(), "dummy-user-id")
245
246 s.Require().NotNil(err)
247 s.Require().Equal("error fetching user: not found", err.Error())
248}
249
250func (s *UserTestSuite) TestUpdateUser() {
251 user, err := s.Store.UpdateUser(context.Background(), s.Fixtures.Users[0].Username, s.Fixtures.UpdateUserParams)

Callers

nothing calls this directly

Calls 2

GetUserByIDMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected