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.
2022-08-24 05:22:24 +00:00
|
|
|
package parser
|
|
|
|
|
2022-09-05 17:42:17 +00:00
|
|
|
import "os"
|
2022-08-24 05:22:24 +00:00
|
|
|
import "testing"
|
2022-09-05 17:42:17 +00:00
|
|
|
import "path/filepath"
|
2022-09-17 17:39:29 +00:00
|
|
|
import "git.tebibyte.media/arf/arf/testCommon"
|
2022-08-24 05:22:24 +00:00
|
|
|
|
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)
|
2022-09-17 17:39:29 +00:00
|
|
|
testCommon.CheckStrings(test, tree, err, correct)
|
2022-08-24 05:22:24 +00:00
|
|
|
}
|