Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mislav/hub
/ TestBranch_ShortName
Function
TestBranch_ShortName
github/branch_test.go:9–13 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
7
)
8
9
func
TestBranch_ShortName(t *testing.T) {
10
lp, _ := LocalRepo()
11
b := Branch{lp,
"refs/heads/master"
}
12
assert.Equal(t,
"master"
, b.ShortName())
13
}
14
15
func
TestBranch_LongName(t *testing.T) {
16
lp, _ := LocalRepo()
Callers
nothing calls this directly
Calls
2
ShortName
Method · 0.95
LocalRepo
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…