MCPcopy Create free account
hub / github.com/LegacyCodeHQ/clarity-cli / TestParseCommitRange_SingleCommit

Function TestParseCommitRange_SingleCommit

vcs/git/git_test.go:301–307  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

299}
300
301func TestParseCommitRange_SingleCommit(t *testing.T) {
302 from, to, isRange := ParseCommitRange("abc123")
303
304 assert.Equal(t, "", from)
305 assert.Equal(t, "abc123", to)
306 assert.False(t, isRange)
307}
308
309func TestParseCommitRange_HEAD(t *testing.T) {
310 from, to, isRange := ParseCommitRange("HEAD")

Callers

nothing calls this directly

Calls 1

ParseCommitRangeFunction · 0.85

Tested by

no test coverage detected