This repository has been archived on 2024-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
arf/parser/test-common.go

14 lines
355 B
Go
Raw Permalink Normal View History

package parser
2022-09-05 17:42:17 +00:00
import "os"
import "testing"
2022-09-05 17:42:17 +00:00
import "path/filepath"
import "git.tebibyte.media/arf/arf/testCommon"
2022-09-05 18:52:37 +00:00
func checkTree (modulePath string, skim bool, correct string, test *testing.T) {
2022-09-05 17:42:17 +00:00
cwd, _ := os.Getwd()
modulePath = filepath.Join(cwd, modulePath)
2022-09-05 18:52:37 +00:00
tree, err := Fetch(modulePath, skim)
testCommon.CheckStrings(test, tree, err, correct)
}