report

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValue

type KeyValue [2]string

func (KeyValue) Key

func (k KeyValue) Key() string

func (KeyValue) Value

func (k KeyValue) Value() string

type Report

type Report interface {
	Sections() []Section
	AddSection(Section)
	Status() Result
}

func New

func New() Report

type Reporter

type Reporter interface {
	CreateReport() (Report, error)
}

type Result

type Result uint8
const (
	Fail Result = iota
	Warning
	Pass
)

type Section

type Section interface {
	Heading() string
	KeyValues() []KeyValue
	AddKeyValue(key, value string)
	AddTest(name string, result Result, description string)
	Tests() []Test
}

func NewSection

func NewSection(heading string) Section

type Test

type Test struct {
	Name        string
	Result      Result
	Description string
}

Jump to

Keyboard shortcuts

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