testlib_checker

package
v0.0.0-...-5379b69 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdChecker

type CmdChecker struct {
	io.Writer

	Cmd *exec.Cmd
	// contains filtered or unexported fields
}

func TestlibChecker

func TestlibChecker(checkerCmd string, inp, oup, ans *os.File) (*CmdChecker, error)

func (*CmdChecker) Close

func (c *CmdChecker) Close() error

func (*CmdChecker) CloseWithTimeout

func (c *CmdChecker) CloseWithTimeout(t time.Duration) error

CloseWithTimeout must be invoked in main process to this time (sync process)

func (*CmdChecker) GetJudgeResult

func (c *CmdChecker) GetJudgeResult() ([]byte, error)

type Compiler

type Compiler struct {
	C           tarus_compiler.Compiler
	ProjectRoot string
}

func (*Compiler) CompileChecker

func (c *Compiler) CompileChecker(checkerSource string, checkerBin string) error

type ProcessChecker

type ProcessChecker struct {
	Process *os.Process
	// contains filtered or unexported fields
}

func TestlibCheckerProcessImpl

func TestlibCheckerProcessImpl(checkerCmd string, inp, oup, ans *os.File) (c *ProcessChecker, err error)

func (*ProcessChecker) Close

func (c *ProcessChecker) Close() error

func (*ProcessChecker) CloseWithTimeout

func (c *ProcessChecker) CloseWithTimeout(t time.Duration) (err error)

CloseWithTimeout must be invoked in main process to this time (sync process)

func (*ProcessChecker) GetJudgeResult

func (c *ProcessChecker) GetJudgeResult() ([]byte, error)

Jump to

Keyboard shortcuts

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