Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cli/cli
/ TestShortSHA
Function
TestShortSHA
git/client_test.go:2283–2286 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
2281
}
2282
2283
func
TestShortSHA(t *testing.T) {
2284
assert.Equal(t,
"abc123de"
, ShortSHA(
"abc123def456789"
))
2285
assert.Equal(t,
"short"
, ShortSHA(
"short"
))
2286
}
Callers
nothing calls this directly
Calls
2
ShortSHA
Function · 0.85
Equal
Method · 0.80
Tested by
no test coverage detected