(t *testing.T)
| 769 | } |
| 770 | |
| 771 | func TestFlockRefreshLockCreatesMissingDirectory(t *testing.T) { |
| 772 | path := filepath.Join(t.TempDir(), "state", "gh", refreshLockFile) |
| 773 | |
| 774 | unlock, err := flockRefreshLock(t.Context(), path) |
| 775 | require.NoError(t, err) |
| 776 | defer unlock() |
| 777 | |
| 778 | require.FileExists(t, path) |
| 779 | } |
| 780 | |
| 781 | func TestWithFreshConfigUnderLockProceedsWhenStateDirCannotBeCreated(t *testing.T) { |
| 782 | // If we have reached a refresh, the environment is already set up enough to proceed. A read-only mount (or any |
nothing calls this directly
no test coverage detected