MCPcopy
hub / github.com/cli/cli / mustParseQualifiedHeadRef

Function mustParseQualifiedHeadRef

pkg/cmd/pr/create/create_test.go:2336–2342  ·  view source on GitHub ↗
(ref string)

Source from the content-addressed store, hash-verified

2334}
2335
2336func mustParseQualifiedHeadRef(ref string) shared.QualifiedHeadRef {
2337 parsed, err := shared.ParseQualifiedHeadRef(ref)
2338 if err != nil {
2339 panic(err)
2340 }
2341 return parsed
2342}
2343
2344func Test_generateCompareURL(t *testing.T) {
2345 tests := []struct {

Callers 1

Test_generateCompareURLFunction · 0.70

Calls 1

ParseQualifiedHeadRefFunction · 0.92

Tested by

no test coverage detected