tool

package
v0.0.0-...-013609d Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGrade

func GenerateGrade(resultsPath, policyPath, outputPath string) error

GenerateGrade outputs a grade file based on input test results and input grading policy

Types

type Grade

type Grade struct {
	GradeName            string
	RequiredPassingTests []claim.Identifier
	NextGrade            *Grade
}

Grade is a single grade object from policy file

type GradeResult

type GradeResult struct {
	Name    string
	Propose bool
	Pass    []claim.Identifier
	Fail    []claim.Identifier
}

GradeResult is the grade output object

func NewGradeResult

func NewGradeResult(gradeName string) GradeResult

NewGradeResult creates a new object without nil properties

type Policy

type Policy struct {
	Grades Grade
}

Policy is the object in the policy file

Jump to

Keyboard shortcuts

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