(t *testing.T)
| 350 | } |
| 351 | |
| 352 | func TestUserSettingGetUserByPATHashNotFound(t *testing.T) { |
| 353 | t.Parallel() |
| 354 | ctx := context.Background() |
| 355 | ts := NewTestingStore(ctx, t) |
| 356 | _, err := createTestingHostUser(ctx, ts) |
| 357 | require.NoError(t, err) |
| 358 | |
| 359 | // Lookup non-existent PAT hash |
| 360 | result, err := ts.GetUserByPATHash(ctx, "non-existent-hash") |
| 361 | require.Error(t, err) |
| 362 | require.Nil(t, result) |
| 363 | |
| 364 | ts.Close() |
| 365 | } |
| 366 | |
| 367 | func TestUserSettingGetUserByPATHashNoTokensKey(t *testing.T) { |
| 368 | t.Parallel() |
nothing calls this directly
no test coverage detected