toolchains

package
v0.0.0-...-822aaa9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator struct {
	Ctx context.Context
}

func NewEvaluator

func NewEvaluator(ctx context.Context) *Evaluator

func (Evaluator) Submission

func (ev Evaluator) Submission(submission model.Submission) model.RunResult

type Golang

type Golang struct {
	Ctx context.Context
}

func NewGolang

func NewGolang(ctx context.Context) *Golang

func (Golang) Eval

func (g Golang) Eval(dir string, sandbox containers.Sandbox) model.RunResult

func (Golang) ParseCompileErrors

func (g Golang) ParseCompileErrors(out bytes.Buffer) []model.CompileError

func (Golang) ParseTestEvent

func (g Golang) ParseTestEvent(out bytes.Buffer) []model.TestResult

func (Golang) Prep

func (g Golang) Prep(submission model.Submission) (string, error)

type Python

type Python struct{}

func NewPython

func NewPython() *Python

func (Python) Eval

func (p Python) Eval(dir string, sandbox containers.Sandbox) model.RunResult

func (Python) Prep

func (p Python) Prep(submission model.Submission) (string, error)

create temporary directory and write source code to file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL