srp

package
v0.0.0-...-de70ca6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

Functions

This section is empty.

Types

type CSVPrinter

type CSVPrinter struct {
	Writer io.Writer
}

func (*CSVPrinter) Output

func (d *CSVPrinter) Output(data map[string]float64)

Output implements Printer

type CalculatorV1

type CalculatorV1 struct {
	// contains filtered or unexported fields
}

CalculatorV1 calculates the test coverage for a directory and it's sub-directories

func (*CalculatorV1) Calculate

func (c *CalculatorV1) Calculate(path string) error

Calculate will calculate the coverage

func (*CalculatorV1) Output

func (c *CalculatorV1) Output(writer io.Writer)

Output will print the coverage data to the supplied writer

type CalculatorV2

type CalculatorV2 struct {
	// contains filtered or unexported fields
}

CalculatorV2 calculates the test coverage for a directory and it's sub-directories

func (*CalculatorV2) Calculate

func (c *CalculatorV2) Calculate(path string) error

Calculate will calculate the coverage

func (CalculatorV2) Output

func (c CalculatorV2) Output(writer io.Writer)

Output will print the coverage data to the supplied writer

func (CalculatorV2) OutputCSV

func (c CalculatorV2) OutputCSV(writer io.Writer)

OutputCSV will print the coverage data to the supplied writer

type CalculatorV3

type CalculatorV3 struct {
	// contains filtered or unexported fields
}

CalculatorV3 calculates the test coverage for a directory and it's sub-directories

func (*CalculatorV3) Calculate

func (c *CalculatorV3) Calculate(path string) error

Calculate will calculate the coverage

type DefaultPrinter

type DefaultPrinter struct {
	Writer io.Writer
}

func (*DefaultPrinter) Output

func (d *DefaultPrinter) Output(data map[string]float64)

Output implements Printer

type Person

type Person struct {
	ID    int64
	Name  string
	Phone string
}

type Printer

type Printer interface {
	Output(data map[string]float64)
}

Jump to

Keyboard shortcuts

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