(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func TestIsLockFileStale_CorruptFile(t *testing.T) { |
| 56 | dir := t.TempDir() |
| 57 | path := filepath.Join(dir, "test.lock") |
| 58 | require.NoError(t, os.WriteFile(path, []byte("not json"), 0600)) |
| 59 | |
| 60 | stale, _, err := isLockFileStale(path) |
| 61 | require.NoError(t, err) |
| 62 | assert.True(t, stale) |
| 63 | } |
| 64 | |
| 65 | func TestReadAuthURL_Exists(t *testing.T) { |
| 66 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected