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

Function TestToAbsolutePaths

vcs/git/git_test.go:47–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func 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

Callers

nothing calls this directly

Calls 1

toAbsolutePathsFunction · 0.85

Tested by

no test coverage detected