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

Method TestGetUserByID

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

Source from the content-addressed store, hash-verified

234}
235
236func (s *UserTestSuite) TestGetUserByID() {
237 user, err := s.Store.GetUserByID(context.Background(), s.Fixtures.Users[0].ID)
238
239 s.Require().Nil(err)
240 s.Require().Equal(s.Fixtures.Users[0].ID, user.ID)
241}
242
243func (s *UserTestSuite) TestGetUserByIDNotFound() {
244 _, err := s.Store.GetUserByID(context.Background(), "dummy-user-id")

Callers

nothing calls this directly

Calls 1

GetUserByIDMethod · 0.65

Tested by

no test coverage detected