Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearClutter ¶
func ClearClutter()
ClearClutter deletes all the files present in probe's temp directory.
Types ¶
type Result ¶
type Result struct {
Ok bool `json:"ok"`
Solutions map[string]map[string]string `json:"solutions"`
}
Result struct contains all the parameters returned by the solutions API.
func GetSolutions ¶
GetSolutions makes a request to the API server and returns a `Result` struct filled with solutions.
type TestCases ¶
type TestCases struct {
PythonCases map[string]string `json:"pythonCases"`
JavascriptCases map[string]string `json:"javascriptCases"`
}
TestCases has python and javascript test cases, and is a part of the `Tester` struct.
type Tester ¶
Tester struct is the main struct which has methods related to testing the code.
func (*Tester) PerformTests ¶
PerformTests is the main tester function. It first gets the test cases, hunts the code for imports, exec and eval functions and tests the code, again returning a boolean variable.
Click to show internal directories.
Click to hide internal directories.