(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func TestToAbsolutePaths(t *testing.T) { |
| 48 | repoRoot := "/Users/test/repo" |
| 49 | relativePaths := []string{ |
| 50 | "lib/main.dart", |
| 51 | "test/widget_test.dart", |
| 52 | "models/user.dart", |
| 53 | } |
| 54 | |
| 55 | absolutePaths := toAbsolutePaths(repoRoot, relativePaths) |
| 56 | |
| 57 | assert.Len(t, absolutePaths, 3) |
| 58 | assert.Equal(t, "/Users/test/repo/lib/main.dart", absolutePaths[0]) |
| 59 | assert.Equal(t, "/Users/test/repo/test/widget_test.dart", absolutePaths[1]) |
| 60 | assert.Equal(t, "/Users/test/repo/models/user.dart", absolutePaths[2]) |
| 61 | } |
| 62 | |
| 63 | // Tests for GetRepositoryRoot |
| 64 |
nothing calls this directly
no test coverage detected