domain

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const OSBinaryExtension = ""

OSBinaryExtension is the default extensions for binaries in the current OS For linux it is an empty string

Variables

View Source
var (
	ErrProgramNotFound = errors.New("program not found")
	ErrSourceNotFound  = errors.New("source not found")
)

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Build(inputpath string) (string, error)
}

type FileFinder

type FileFinder interface {
	Find(filename string) (string, error)
}

type StartedTest

type StartedTest interface {
	Stdin() *bytes.Buffer
	Stdout() *bytes.Buffer
	Stderr() *bytes.Buffer
	Cmd() *exec.Cmd

	ExpectedOutput() string
}

type Test

type Test struct {
	Program        string
	Input          string
	ExpectedOutput string
}

type TestResult

type TestResult struct {
	Output      string
	ErrorOutput string
}

type Tester

type Tester interface {
	Start(t Test) (started StartedTest, err error)
	Wait(started StartedTest) (result TestResult, err error)
}

type Toolchain

type Toolchain interface {
	Build(inputpath, outputpath string) error
}

type ToolchainFactory

type ToolchainFactory func() (Toolchain, error)

type ToolchainFinder

type ToolchainFinder interface {
	Find(string) (ToolchainLoader, error)
}

type ToolchainLoader

type ToolchainLoader interface {
	Load() (Toolchain, error)
	InputExtensions() []string
	OutputExtension() string
}

Jump to

Keyboard shortcuts

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