(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func TestPing(t *testing.T) { |
| 77 | t.Parallel() |
| 78 | |
| 79 | db := dbmock.NewMockStore(gomock.NewController(t)) |
| 80 | db.EXPECT().Wrappers().Times(1).Return([]string{}) |
| 81 | db.EXPECT().Ping(gomock.Any()).Times(1).Return(time.Second, nil) |
| 82 | q := dbauthz.New(db, &coderdtest.RecordingAuthorizer{}, slog.Make(), coderdtest.AccessControlStorePointer()) |
| 83 | _, err := q.Ping(context.Background()) |
| 84 | require.NoError(t, err, "must not error") |
| 85 | } |
| 86 | |
| 87 | // TestInTX is not perfect, just checks that it properly checks auth. |
| 88 | func TestInTX(t *testing.T) { |
nothing calls this directly
no test coverage detected