testcase

package
v0.0.0-...-94f4387 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestcaseManager

func NewTestcaseManager(source loader.Read, cache cache.Cache) *testcaseManager

Types

type Element

type Element struct {
	Id  string `json:"id"`
	In  string `json:"input"`
	Out string `json:"output"`
}

type Testcase

type Testcase struct {
	// metadata should be here
	Elements []Element
}

func (*Testcase) Count

func (t *Testcase) Count() int

func (Testcase) MarshalBinary

func (t Testcase) MarshalBinary() ([]byte, error)

func (*Testcase) UnmarshalBinary

func (t *Testcase) UnmarshalBinary(data []byte) error

type TestcaseManager

type TestcaseManager interface {
	GetTestcase(problemId string) (Testcase, error)
}

Jump to

Keyboard shortcuts

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