Documentation
¶
Index ¶
- Variables
- func CheckJavaOutput(allOutput string, allTests []models.TestCase) (bool, models.Result, error)
- func CheckOutput(actualOutput string, expectedOutput string) (currentstatus.CurrentStatus, error)
- func CleanUp(path string)
- func RunCommandWithInput(runCmd *exec.Cmd, stdin string) (string, error)
- func SaveFile(filePath string, dirPath string, code string) error
- func SetPermissions(cmd *exec.Cmd)
Constants ¶
This section is empty.
Variables ¶
View Source
var TleError error = fmt.Errorf("Time Limit Exceeded")
Functions ¶
func CheckJavaOutput ¶
func CheckOutput ¶
func CheckOutput(actualOutput string, expectedOutput string) (currentstatus.CurrentStatus, error)
if err := cGroupManager.AddProc(uint64(cmd.Process.Pid)); err != nil {
fmt.Printf("Error adding process to cgroup: %v\n", err)
cmd.Process.Kill()
return fmt.Errorf("Unable to attach to cgroup")
}
return nil
}
TODO: Fix Multiline Output
func SetPermissions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.