qa

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(ins []string, schemas []string, outDir string, batchSize int) (err error)

Types

type ErrorStat

type ErrorStat struct {
	Field            string  `json:"field"`
	ErrorType        string  `json:"error_type"`
	ErrorDescription string  `json:"error_description"`
	ErrorCount       uint64  `json:"error_count"`
	RecordCount      uint64  `json:"record_count"`
	ErrorPercent     float64 `json:"error_percent"`
}

func (*ErrorStat) CalculatePercentage

func (e *ErrorStat) CalculatePercentage()

func (*ErrorStat) IncErrCount

func (e *ErrorStat) IncErrCount()

type ErrorStats

type ErrorStats map[string]*ErrorStat

type RecordWrapper

type RecordWrapper struct {
	Errors []records.SchemaError `json:"errors"`
	Record interface{}           `json:"record"`
}

type RecordsValidationResult

type RecordsValidationResult struct {
	Collections map[string][]RecordWrapper         `json:"collections"`
	Stats       map[string]*records.CollectionStat `json:"stats"`
}

Jump to

Keyboard shortcuts

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