runner

package
v0.0.0-...-ecb7e2e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2015 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JavaUnitTest

func JavaUnitTest(w http.ResponseWriter, r *http.Request)

JavaUnitTest is a handle function for Java unit tests. It writes the Application.java file in the tmp folder and returns the docker run configuration

func OpenTestFile

func OpenTestFile(name string) (io.ReadCloser, error)

OpenTestFile is like os.Open but for accessing test files.

func OutputTest

func OutputTest(w http.ResponseWriter, r *http.Request)

Handle function for an output test run. It writes the file with code in the tmp folder and returns the docker run configuration.

func Simple

func Simple(w http.ResponseWriter, r *http.Request)

Handle function for a simple run. It writes the file with code in the tmp folder and returns the docker run configuration.

Types

type CodeTask

type CodeTask struct {
	Flags, Code, Language string
}

type Failure

type Failure struct {
	Message string `xml:"message,attr"`
}

Failure holds a failure created by junit

type TestCase

type TestCase struct {
	Name    string  `xml:"name,attr"`
	Time    string  `xml:"time,attr"`
	Failure Failure `xml:"failure"`
}

TestCase holds a test case created by junit

type UnitTestResult

type UnitTestResult struct {
	Tests    int        `xml:"tests,attr"`
	Failures int        `xml:"failures,attr"`
	Errors   int        `xml:"errors,attr"`
	TestCase []TestCase `xml:"testcase"`
}

UnitTestResult holds the unit test result created by junit

Jump to

Keyboard shortcuts

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