(t *testing.T)
| 73 | } |
| 74 | |
| 75 | func TestService_IsEnabled_AlwaysEnable(t *testing.T) { |
| 76 | t.Parallel() |
| 77 | |
| 78 | ctx := testutil.Context(t, testutil.WaitLong) |
| 79 | db, _, _ := dbtestutil.NewDBWithSQLDB(t) |
| 80 | _, owner, chat, model := seedChat(t, db) |
| 81 | require.NotEqual(t, uuid.Nil, model.ID) |
| 82 | |
| 83 | svc := chatdebug.NewService(db, testutil.Logger(t), nil, chatdebug.WithAlwaysEnable(true)) |
| 84 | require.True(t, svc.IsEnabled(ctx, chat.ID, owner.ID)) |
| 85 | require.True(t, svc.IsEnabled(ctx, chat.ID, uuid.Nil)) |
| 86 | } |
| 87 | |
| 88 | func TestService_IsEnabled_ZeroValueService(t *testing.T) { |
| 89 | t.Parallel() |
nothing calls this directly
no test coverage detected