(t *testing.T)
| 116 | } |
| 117 | |
| 118 | func 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 |
nothing calls this directly
no test coverage detected