types

package
v0.0.0-...-df633b8 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	SucceededResult []Result `json:"succeeded,omitempty"`
	SkippedResult   []Result `json:"skipped,omitempty"`
	FailedResult    []Result `json:"failed,omitempty"`
}

func NewReport

func NewReport() *Report

func (*Report) AddFailedResult

func (r *Report) AddFailedResult(name, path, msg string)

func (*Report) AddSkippedResult

func (r *Report) AddSkippedResult(name, path, msg string)

func (*Report) AddSucceededResult

func (r *Report) AddSucceededResult(name, path, msg string)

func (*Report) Render

func (r *Report) Render(w io.Writer)

func (*Report) TotalCount

func (r *Report) TotalCount() int

type Result

type Result struct {
	Name    string `json:"name"`
	Path    string `json:"path"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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