lang: Add placeholders for future prefix passing

This commit is contained in:
James Shubin
2023-12-01 16:08:21 -05:00
parent 7991b4ab25
commit 12ffac1f06
2 changed files with 3 additions and 0 deletions

View File

@@ -1012,6 +1012,7 @@ func TestAstFunc2(t *testing.T) {
Name: "test",
Hostname: "", // NOTE: empty b/c not used
World: world, // used partially in some tests
//Prefix: fmt.Sprintf("%s/", filepath.Join(tmpdir, "funcs")),
Debug: testing.Verbose(), // set via the -test.v flag to `go test`
Logf: func(format string, v ...interface{}) {
logf("funcs: "+format, v...)
@@ -1773,6 +1774,7 @@ func TestAstFunc3(t *testing.T) {
Name: "test",
Hostname: "", // NOTE: empty b/c not used
World: world, // used partially in some tests
//Prefix: fmt.Sprintf("%s/", filepath.Join(tmpdir, "funcs")),
Debug: testing.Verbose(), // set via the -test.v flag to `go test`
Logf: func(format string, v ...interface{}) {
logf("funcs: "+format, v...)

View File

@@ -238,6 +238,7 @@ func (obj *Lang) Init() error {
Name: "lang", // TODO: arbitrary name for now
Hostname: obj.Hostname,
World: obj.World,
//Prefix: fmt.Sprintf("%s/", path.Join(obj.Prefix, "funcs")),
Debug: obj.Debug,
Logf: func(format string, v ...interface{}) {
obj.Logf("funcs: "+format, v...)