ratio

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffRatio added in v0.20.0

type DiffRatio struct {
	A      float64 `json:"a"`
	B      float64 `json:"b"`
	Diff   float64 `json:"diff"`
	RatioA *Ratio  `json:"-"`
	RatioB *Ratio  `json:"-"`
}

type Ratio

type Ratio struct {
	Code      int      `json:"code"`
	Test      int      `json:"test"`
	CodeFiles []string `json:"-"`
	TestFiles []string `json:"-"`
}

func Measure

func Measure(root string, code, test []string) (*Ratio, error)

func New

func New() *Ratio

func (*Ratio) Compare added in v0.20.0

func (r *Ratio) Compare(r2 *Ratio) *DiffRatio

Jump to

Keyboard shortcuts

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