MCPcopy Create free account
hub / github.com/cli/cli / TestShortSHA

Function TestShortSHA

git/client_test.go:2287–2290  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2285}
2286
2287func TestShortSHA(t *testing.T) {
2288 assert.Equal(t, "abc123de", ShortSHA("abc123def456789"))
2289 assert.Equal(t, "short", ShortSHA("short"))
2290}

Callers

nothing calls this directly

Calls 2

ShortSHAFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected