coderunners

package
v0.0.0-...-c6b391f Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TleError error = fmt.Errorf("Time Limit Exceeded")

Functions

func CheckJavaOutput

func CheckJavaOutput(allOutput string, allTests []models.TestCase) (bool, models.Result, error)

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 CleanUp

func CleanUp(path string)

func RunCommandWithInput

func RunCommandWithInput(runCmd *exec.Cmd, stdin string) (string, error)

func SaveFile

func SaveFile(filePath string, dirPath string, code string) error

func SetPermissions

func SetPermissions(cmd *exec.Cmd)

Types

This section is empty.

Directories

Path Synopsis
c

Jump to

Keyboard shortcuts

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