toolchains

package
v0.0.0-...-a152fe2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBox

func CreateBox(workdir string) (string, error)

func WriteSourceCodes

func WriteSourceCodes(dir string, sourceFiles []model.SourceFile) error

Types

type CSharp

type CSharp struct {
	Ctx        context.Context
	Workdir    string
	Submission model.Submission
}

func NewCSharp

func NewCSharp(workdir string, Submission model.Submission) *CSharp

func (CSharp) Build

func (cs CSharp) Build(dir string, sandbox containers.Minijail) ([]model.BuildError, error)

func (CSharp) Eval

func (cs CSharp) Eval(dir string, sandbox containers.Minijail) ([]model.TestResult, error)

func (CSharp) Prep

func (cs CSharp) Prep() (string, error)

func (CSharp) Run

func (cs CSharp) Run(sandbox containers.Minijail) model.RunResult

type Evaluator

type Evaluator struct {
	Workdir string
}

func NewEvaluator

func NewEvaluator(workdir string) *Evaluator

func (Evaluator) Eval

func (ev Evaluator) Eval(ctx context.Context, submission model.Submission) model.RunResult

func (Evaluator) EvalCSharp

func (ev Evaluator) EvalCSharp(ctx context.Context, submission model.Submission) model.RunResult

func (Evaluator) Submission

func (ev Evaluator) Submission(ctx context.Context, submission model.Submission) model.RunResult

Jump to

Keyboard shortcuts

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