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

Function testConfig

pkg/cmd/pr/comment/comment_test.go:888–891  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

886}
887
888func testConfig() func() (gh.Config, error) {
889 cfg := config.NewMockConfigFromString("hosts:\n github.com:\n oauth_token: gho_a_token_that_can_upload\n")
890 return func() (gh.Config, error) { return cfg, nil }
891}
892
893func mockCommentCreate(t *testing.T, reg *httpmock.Registry, wantBody string) {
894 reg.Register(

Callers 1

TestNewCmdCommentFunction · 0.70

Calls 1

NewMockConfigFromStringFunction · 0.92

Tested by

no test coverage detected