Documentation
¶
Index ¶
- Constants
- type Python3
- func (Python3) Compile(ctx context.Context, s sandbox.Sandbox, f sandbox.File, stderr io.Writer, ...) (*sandbox.File, error)
- func (Python3) DefaultFilename() string
- func (Python3) DisplayName() string
- func (Python3) ID() string
- func (Python3) Run(ctx context.Context, s sandbox.Sandbox, binary sandbox.File, stdin io.Reader, ...) (*sandbox.Status, error)
- func (p Python3) Test(t *testing.T, s sandbox.Sandbox) error
Constants ¶
View Source
const ( TestCodeAplusb = `inp = input().split(' ') a,b = int(inp[0]), int(inp[1]) print(a+b)` TestCodeSyntaxError = `inp = input(()` TestCodeHelloWorld = `print("Hello world")` TestCodeTimeLimit = `x = 0 while True: x = x+1` TestCodeRuntimeError = `x = [1,2,3] print(x[4])` TestCodeRuntimeErrorDiv0 = `print(1/0)` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Python3 ¶
type Python3 struct{}
func (Python3) DefaultFilename ¶
func (Python3) DisplayName ¶
Click to show internal directories.
Click to hide internal directories.