MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / mustResolvePath

Function mustResolvePath

test/tools_parity_test.go:1082–1093  ·  view source on GitHub ↗
(t *testing.T, path string)

Source from the content-addressed store, hash-verified

1080}
1081
1082func mustResolvePath(t *testing.T, path string) string {
1083 t.Helper()
1084 resolved, err := filepath.EvalSymlinks(path)
1085 if err != nil {
1086 abs, absErr := filepath.Abs(path)
1087 if absErr != nil {
1088 t.Fatalf("resolve path %s: %v / %v", path, err, absErr)
1089 }
1090 return filepath.Clean(abs)
1091 }
1092 return filepath.Clean(resolved)
1093}

Calls

no outgoing calls

Tested by

no test coverage detected