common

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(fileName string) string

func Log

func Log(format string, args ...any)

func ParseInupt

func ParseInupt(input string, entrypoint string) any

func ParseInuptIncorrect

func ParseInuptIncorrect(input string, entrypoint string) (any, error)

func Read

func Read(fileName string) []byte

func Text

func Text(input string) []byte

Types

type TestSystem

type TestSystem struct {
	Stdout strings.Builder
	Stderr strings.Builder
	Stdmix strings.Builder
}

func MakeContext

func MakeContext() (*c.Context, *TestSystem)

func (*TestSystem) Invoke added in v0.5.12

func (t *TestSystem) Invoke(executable string, args []string, stdin string) (string, string, string, error)

func (*TestSystem) OutputError added in v0.0.2

func (t *TestSystem) OutputError(text string)

func (*TestSystem) OutputText added in v0.0.2

func (t *TestSystem) OutputText(text string)

func (*TestSystem) ResolvePath added in v0.0.2

func (t *TestSystem) ResolvePath(context *c.Context, filePath string) (string, error)

Jump to

Keyboard shortcuts

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