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

Function TestParseRenamedFilePath_FullFormat

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

Source from the content-addressed store, hash-verified

90}
91
92func TestParseRenamedFilePath_FullFormat(t *testing.T) {
93 tests := []struct {
94 name string
95 input string
96 expected string
97 }{
98 {
99 name: "simple rename",
100 input: "old/path/file.go => new/path/file.go",
101 expected: "new/path/file.go",
102 },
103 {
104 name: "rename with spaces in path",
105 input: "old path/file.go => new path/file.go",
106 expected: "new path/file.go",
107 },
108 }
109
110 for _, tt := range tests {
111 t.Run(tt.name, func(t *testing.T) {
112 result := parseRenamedFilePath(tt.input)
113 assert.Equal(t, tt.expected, result)
114 })
115 }
116}
117
118func TestParseRenamedFilePath_NoRename(t *testing.T) {
119 tests := []struct {

Callers

nothing calls this directly

Calls 1

parseRenamedFilePathFunction · 0.85

Tested by

no test coverage detected