(t *testing.T)
| 930 | } |
| 931 | |
| 932 | func TestFlockRefreshLockCreatesMissingDirectory(t *testing.T) { |
| 933 | path := filepath.Join(t.TempDir(), "state", "gh", refreshLockFile) |
| 934 | |
| 935 | unlock, err := flockRefreshLock(t.Context(), path) |
| 936 | require.NoError(t, err) |
| 937 | defer unlock() |
| 938 | |
| 939 | require.FileExists(t, path) |
| 940 | } |
| 941 | |
| 942 | func TestWithFreshConfigUnderLockProceedsWhenStateDirCannotBeCreated(t *testing.T) { |
| 943 | // 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