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

Function TestParseCommitRange_ThreeDotSyntax

vcs/git/git_test.go:285–291  ·  view source on GitHub ↗

Tests for ParseCommitRange

(t *testing.T)

Source from the content-addressed store, hash-verified

283// Tests for ParseCommitRange
284
285func TestParseCommitRange_ThreeDotSyntax(t *testing.T) {
286 from, to, isRange := ParseCommitRange("abc123...def456")
287
288 assert.Equal(t, "abc123", from)
289 assert.Equal(t, "def456", to)
290 assert.True(t, isRange)
291}
292
293func TestParseCommitRange_TwoDotSyntax(t *testing.T) {
294 from, to, isRange := ParseCommitRange("abc123..def456")

Callers

nothing calls this directly

Calls 1

ParseCommitRangeFunction · 0.85

Tested by

no test coverage detected