Documentation
¶
Index ¶
- func ParserAndIdentifier(opts ...Option) (problems.ConfigParser, problems.ConfigIdentifier)
- type Attachment
- type Checker
- type Option
- type Problem
- func (p Problem) Attachments() problems.Attachments
- func (p Problem) Checker() problems.Checker
- func (p Problem) EvaluationFiles() []problems.EvaluationFile
- func (p Problem) GetTaskType() problems.TaskType
- func (p Problem) InputOutputFiles() (string, string)
- func (p Problem) Languages() []language.Language
- func (p Problem) MemoryLimit() memory.Amount
- func (p Problem) Name() string
- func (p Problem) Statements() problems.Contents
- func (p Problem) StatusSkeleton(name string) (*problems.Status, error)
- func (p Problem) Tags() []string
- func (p Problem) TimeLimit() int
- func (p Problem) Titles() problems.Contents
- type Statement
- type Stub
- type Subtask
- type Tests
- type Title
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParserAndIdentifier ¶
func ParserAndIdentifier(opts ...Option) (problems.ConfigParser, problems.ConfigIdentifier)
Types ¶
type Attachment ¶
type Problem ¶
type Problem struct { Path string `yaml:"-"` GeneratedStatementList problems.Contents `yaml:"-"` AttachmentList problems.Attachments `yaml:"-"` ShortName string `yaml:"shortname"` TitleList []Title `yaml:"titles"` StatementList []Statement `yaml:"statements"` AttachmentInfo []Attachment `yaml:"attachments"` Tests Tests `yaml:"tests"` }
func (Problem) Attachments ¶
func (p Problem) Attachments() problems.Attachments
func (Problem) EvaluationFiles ¶ added in v0.4.0
func (p Problem) EvaluationFiles() []problems.EvaluationFile
func (Problem) GetTaskType ¶
func (Problem) InputOutputFiles ¶
func (Problem) MemoryLimit ¶
func (Problem) Statements ¶
func (Problem) StatusSkeleton ¶
type Subtask ¶
type Subtask struct { TestCount int `yaml:"test_count"` InputList []string `yaml:"input_list"` OutputList []string `yaml:"output_list"` InputPattern string `yaml:"input_pattern"` OutputPattern string `yaml:"output_pattern"` ZeroIndexedPattern bool `yaml:"zero_indexed_pattern"` Scoring string `yaml:"scoring"` MaxScore float64 `yaml:"max_score"` Scores []float64 `yaml:"scores"` }
type Tests ¶ added in v0.6.0
type Tests struct { TaskType string `yaml:"task_type"` TaskTypeArgs []string `yaml:"task_type_args"` Stubs []Stub `yaml:"stubs"` InputFile string `yaml:"input_file"` OutputFile string `yaml:"output_file"` MemoryLimit int `yaml:"memory_limit"` TimeLimit float64 `yaml:"time_limit"` TestCount int `yaml:"test_count"` InputPattern string `yaml:"input_pattern"` OutputPattern string `yaml:"output_pattern"` InputList []string `yaml:"input_list"` OutputList []string `yaml:"output_list"` ZeroIndexedPattern bool `yaml:"zero_indexed_pattern"` Checker Checker `yaml:"checker"` FeedbackType string `yaml:"feedback_type"` Scores []float64 `yaml:"scores"` Subtasks []Subtask `yaml:"subtasks"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.