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

Function TestParseRenamedFilePath_NoRename

vcs/git/git_stats_test.go:118–142  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

116}
117
118func TestParseRenamedFilePath_NoRename(t *testing.T) {
119 tests := []struct {
120 name string
121 input string
122 expected string
123 }{
124 {
125 name: "regular file path",
126 input: "depgraph/dependency_graph.go",
127 expected: "depgraph/dependency_graph.go",
128 },
129 {
130 name: "file with braces but no arrow",
131 input: "lib/{utils}/helper.go",
132 expected: "lib/{utils}/helper.go",
133 },
134 }
135
136 for _, tt := range tests {
137 t.Run(tt.name, func(t *testing.T) {
138 result := parseRenamedFilePath(tt.input)
139 assert.Equal(t, tt.expected, result)
140 })
141 }
142}
143
144// Tests for GetCommitRangeFileStats
145

Callers

nothing calls this directly

Calls 1

parseRenamedFilePathFunction · 0.85

Tested by

no test coverage detected