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

Function TestParseCommitRange_HEADTilde

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

Source from the content-addressed store, hash-verified

315}
316
317func TestParseCommitRange_HEADTilde(t *testing.T) {
318 from, to, isRange := ParseCommitRange("HEAD~5...HEAD")
319
320 assert.Equal(t, "HEAD~5", from)
321 assert.Equal(t, "HEAD", to)
322 assert.True(t, isRange)
323}
324
325func TestParseCommitRange_ThreeDotPreferredOverTwoDot(t *testing.T) {
326 // Edge case: input contains both ... and ..

Callers

nothing calls this directly

Calls 1

ParseCommitRangeFunction · 0.85

Tested by

no test coverage detected