tool

package
v0.0.0-...-f9ca0a1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: MIT Imports: 9 Imported by: 0

README

acos tool

init

Run acos init to init in current directory.

Manage tasks

  • acos new sm12-3 - create new task.
  • acos archive sm12-3 - move task to archive dir.
  • acos unarchive sm12-3 - restore task from archive.

Testing

  • acos test for testing.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action

func Action(action string)

func Compile

func Compile(opts CompileOptions) error

func CountIndent

func CountIndent(line string) int

func FError

func FError(errorMsg string, err error)

func FWarn

func FWarn(warn string)

func GenTest

func GenTest(exe, in string) error

func GenTests

func GenTests(gen, sol string, l, r int)

func Lint

func Lint(src string)

func LintAsm

func LintAsm(src string) error

func ReadText

func ReadText(src string) (string, error)

func RunSolution

func RunSolution(exe, in, out string) error

func TestRun

func TestRun(exe string, test FileTest)

func TestTask

func TestTask(opts TestOptions) error

Types

type CompileOptions

type CompileOptions struct {
	Src string
	Dst string
	Log bool
}

type FileTest

type FileTest struct {
	Name    string
	InFile  string
	AnsFile string
	In      string
	Ans     string
}

func FindTests

func FindTests(dir string) ([]FileTest, error)

type TestOptions

type TestOptions struct {
	Source     string
	Executable string
	TestsDir   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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