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/analyzer/test-common.go

14 lines
361 B
Go

package analyzer
import "os"
import "testing"
import "path/filepath"
import "git.tebibyte.media/arf/arf/testCommon"
func checkTree (modulePath string, skim bool, correct string, test *testing.T) {
cwd, _ := os.Getwd()
modulePath = filepath.Join(cwd, modulePath)
table, err := Analyze(modulePath, skim)
testCommon.CheckStrings(test, table, err, correct)
}