axis

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBenchmarks

func NewBenchmarks(benchWeight map[bench.Weight]uint, summaryHTML template.HTML, options *BenchOptions) score.Axis

func NewWarnings

func NewWarnings(levelWeight map[warning.Level]uint, summaryHTML template.HTML) score.Axis

func Setup

func Setup() error

Types

type BenchOptions

type BenchOptions struct {
	Name         string
	IncludeTests []data.TestTag
	ExcludeTests []data.TestTag
}

type Benchmarks

type Benchmarks struct {
	BenchOptions
	// contains filtered or unexported fields
}

func (*Benchmarks) Documentation

func (b *Benchmarks) Documentation() template.HTML

func (*Benchmarks) Exhibits

func (b *Benchmarks) Exhibits() []score.Exhibit

func (*Benchmarks) HasTest added in v1.1.0

func (b *Benchmarks) HasTest(test data.TestTag) bool

func (*Benchmarks) Name

func (b *Benchmarks) Name() string

func (*Benchmarks) ScoreFor

func (b *Benchmarks) ScoreFor(handler data.HandlerTag) score.Value

func (*Benchmarks) ScoreForTest added in v1.1.0

func (b *Benchmarks) ScoreForTest(handler data.HandlerTag, test data.TestTag) score.Value

func (*Benchmarks) ScoreForType added in v1.1.0

func (b *Benchmarks) ScoreForType(handler data.HandlerTag, scoreType score.Type) score.Value

func (*Benchmarks) Setup

func (b *Benchmarks) Setup(benchMarks *data.Benchmarks, _ *data.Warnings) error

func (*Benchmarks) Summary

func (b *Benchmarks) Summary() template.HTML

type Warnings

type Warnings struct {
	score.AxisCore
	// contains filtered or unexported fields
}

func (*Warnings) CountForLevel added in v1.1.0

func (w *Warnings) CountForLevel(handler data.HandlerTag, level warning.Level) score.Value

func (*Warnings) Documentation

func (w *Warnings) Documentation() template.HTML

func (*Warnings) HasTest added in v1.1.0

func (w *Warnings) HasTest(_ data.TestTag) bool

func (*Warnings) Name

func (w *Warnings) Name() string

func (*Warnings) ScoreFor

func (w *Warnings) ScoreFor(handler data.HandlerTag) score.Value

func (*Warnings) ScoreForLevel added in v1.1.0

func (w *Warnings) ScoreForLevel(handler data.HandlerTag, level warning.Level) score.Value

func (*Warnings) ScoreForTest added in v1.1.0

func (w *Warnings) ScoreForTest(handler data.HandlerTag, test data.TestTag) score.Value

func (*Warnings) ScoreForType added in v1.1.0

func (w *Warnings) ScoreForType(handler data.HandlerTag, scoreType score.Type) score.Value

func (*Warnings) Setup

func (w *Warnings) Setup(_ *data.Benchmarks, warns *data.Warnings) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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