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

Function TestPRStatus_error_ReadBranchConfig

pkg/cmd/pr/status/status_test.go:458–465  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

456}
457
458func TestPRStatus_error_ReadBranchConfig(t *testing.T) {
459 rs, cleanup := run.Stub()
460 defer cleanup(t)
461 // We only need the one stub because this fails early
462 rs.Register(`git config --get-regexp \^branch\\.`, 2, "")
463 _, err := runCommand(initFakeHTTP(), "blueberries", true, "")
464 assert.Error(t, err)
465}

Callers

nothing calls this directly

Calls 6

StubFunction · 0.92
cleanupFunction · 0.85
runCommandFunction · 0.70
initFakeHTTPFunction · 0.70
RegisterMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected