Lines Matching refs:thread
58 thread := &starlark.Thread{
59 Load: func(thread *starlark.Thread, module string) (starlark.StringDict, error) {
65 starlarktest.SetReporter(thread, t)
69 return thread
83 thread := &starlark.Thread{
84 Load: func(thread *starlark.Thread, module string) (starlark.StringDict, error) {
90 starlarktest.SetReporter(thread, t)
93 if _, err := starlark.ExecFile(thread, filename, nil, builtins); err != nil {
106 thread := testSetup(t, []string{"CLI_FOO=foo"})
107 if _, err := starlark.ExecFile(thread, "cli_and_env.star", nil, builtins); err != nil {
120 thread := testSetup(t, nil)
121 if _, err := starlark.ExecFile(thread, "file_ops.star", nil, builtins); err != nil {
131 thread := testSetup(t, nil)
132 thread.Load = func(thread *starlark.Thread, module string) (starlark.StringDict, error) {
136 return loader(thread, module)
140 thread.SetLocal(callerDirKey, dir)
142 if _, err := starlark.ExecFile(thread, "load.star", nil, builtins); err != nil {