MCPcopy Create free account
hub / github.com/antonmedv/gitmal / TestParseRefNames_Empty

Function TestParseRefNames_Empty

pkg/git/git_test.go:7–12  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

5)
6
7func TestParseRefNames_Empty(t *testing.T) {
8 got := parseRefNames("")
9 if len(got) != 0 {
10 t.Fatalf("expected empty slice, got %v", got)
11 }
12}
13
14func TestParseRefNames_Mixed(t *testing.T) {
15 input := "HEAD -> main, tag: v1.0.0, origin/HEAD -> origin/main, origin/main, master"

Callers

nothing calls this directly

Calls 1

parseRefNamesFunction · 0.85

Tested by

no test coverage detected