()
| 2059 | } |
| 2060 | |
| 2061 | func (s *MethodTestSuite) TestAISeat() { |
| 2062 | s.Run("GetActiveAISeatCount", s.Mocked(func(dbm *dbmock.MockStore, _ *gofakeit.Faker, check *expects) { |
| 2063 | dbm.EXPECT().GetActiveAISeatCount(gomock.Any()).Return(int64(100), nil).AnyTimes() |
| 2064 | check.Args().Asserts(rbac.ResourceAiSeat, policy.ActionRead).Returns(int64(100)) |
| 2065 | })) |
| 2066 | s.Run("UpsertAISeatState", s.Mocked(func(dbm *dbmock.MockStore, _ *gofakeit.Faker, check *expects) { |
| 2067 | dbm.EXPECT().UpsertAISeatState(gomock.Any(), gomock.Any()).Return(true, nil).AnyTimes() |
| 2068 | check.Args(database.UpsertAISeatStateParams{}).Asserts(rbac.ResourceAiSeat, policy.ActionCreate) |
| 2069 | })) |
| 2070 | } |
| 2071 | |
| 2072 | func (s *MethodTestSuite) TestLicense() { |
| 2073 | s.Run("GetLicenses", s.Mocked(func(dbm *dbmock.MockStore, _ *gofakeit.Faker, check *expects) { |
nothing calls this directly
no test coverage detected