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
84 thread := &starlark.Thread{
85 Load: func(thread *starlark.Thread, module string) (starlark.StringDict, error) {
91 starlarktest.SetReporter(thread, t)
94 thread.SetLocal(executionModeKey, ExecutionModeRbc)
95 thread.SetLocal(shellKey, "/bin/sh")
96 if _, err := starlark.ExecFile(thread, filename, nil, rbcBuiltins); err != nil {
106 thread := testSetup(t)
107 if _, err := starlark.ExecFile(thread, "file_ops.star", nil, rbcBuiltins); err != nil {
117 thread := testSetup(t)
118 thread.Load = func(thread *starlark.Thread, module string) (starlark.StringDict, error) {
122 return loader(thread, module)
129 thread.SetLocal(allowExternalEntrypointKey, false)
130 thread.SetLocal(callingFileKey, "testdata/load.star")
131 thread.SetLocal(executionModeKey, ExecutionModeRbc)
132 if _, err := starlark.ExecFile(thread, "testdata/load.star", nil, rbcBuiltins); err != nil {