(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func 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 | |
| 118 | func TestParseRenamedFilePath_NoRename(t *testing.T) { |
| 119 | tests := []struct { |
nothing calls this directly
no test coverage detected