MCPcopy 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
2283func 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

ShortSHAFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected