diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-05 00:37:23 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-05 00:37:23 -0500 |
commit | 151d516e68f5d43aa2d0c5ff462752d640b6a614 (patch) | |
tree | 6d12582bb6fdea41434ad02be89cc18824c5b80b /fs.go | |
parent | cc7ba659adbc5ad55e1ce67f76952f2b8392c9c9 (diff) | |
download | planr-151d516e68f5d43aa2d0c5ff462752d640b6a614.tar.xz planr-151d516e68f5d43aa2d0c5ff462752d640b6a614.zip |
Refactor gtest adapter to fit new pipeline
Diffstat (limited to 'fs.go')
-rw-r--r-- | fs.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |