MCPcopy Create free account
hub / github.com/cli/cli / TestWithFreshConfigUnderLockPropagatesError

Function TestWithFreshConfigUnderLockPropagatesError

internal/config/refreshable_test.go:762–769  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

760}
761
762func TestWithFreshConfigUnderLockPropagatesError(t *testing.T) {
763 authCfg := newTestAuthConfig(t)
764 sentinel := errors.New("boom")
765
766 err := authCfg.withFreshConfigForRefresh(func(lockErr error) error { return sentinel })
767
768 require.ErrorIs(t, err, sentinel)
769}
770
771func TestFlockRefreshLockCreatesMissingDirectory(t *testing.T) {
772 path := filepath.Join(t.TempDir(), "state", "gh", refreshLockFile)

Callers

nothing calls this directly

Calls 2

newTestAuthConfigFunction · 0.85

Tested by

no test coverage detected