aboutsummaryrefslogtreecommitdiff
path: root/fs.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-05 00:37:23 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-05 00:37:23 -0500
commit151d516e68f5d43aa2d0c5ff462752d640b6a614 (patch)
tree6d12582bb6fdea41434ad02be89cc18824c5b80b /fs.go
parentcc7ba659adbc5ad55e1ce67f76952f2b8392c9c9 (diff)
downloadplanr-151d516e68f5d43aa2d0c5ff462752d640b6a614.tar.xz
planr-151d516e68f5d43aa2d0c5ff462752d640b6a614.zip
Refactor gtest adapter to fit new pipeline
Diffstat (limited to 'fs.go')
-rw-r--r--fs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs.go b/fs.go
index 575517c..a42ff2c 100644
--- a/fs.go
+++ b/fs.go
@@ -50,7 +50,7 @@ func basename(path string) string {
return path[0:len(path) - len(ext)]
}
-func cname(root string, path string) string {
+func Cname(root string, path string) string {
rel, err := filepath.Rel(root, path)
if err != nil {
@@ -76,7 +76,7 @@ func collectUnits(root string, cfgs []AdapterConfig) []TestCase {
collectFromDir(root, nil, cfgs, &tcs)
for i := range tcs {
- tcs[i].Cname = cname(root, tcs[i].Path)
+ tcs[i].Cname = Cname(root, tcs[i].Path)
}
return tcs