models

package
v0.0.0-...-b044383 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionTelemtry

type ExecutionTelemtry struct {
	Os   string `json:"os"`
	Arch string `json:"arch"`
}

type NabazRun

type NabazRun struct {
	RunID           int64         `json:"result_id"`
	CommitID        string        `json:"commit_id"`
	TestsRan        []TestRun     `json:"tests_ran"`
	TestsSkipped    []SkippedTest `json:"tests_skipped"`
	RunDuration     float64       `json:"run_duration"`
	LongestDuration float64       `json:"longest_duration"`
}

NabazRun is the result of a run with nabaz.

func (*NabazRun) FailedTests

func (r *NabazRun) FailedTests() []TestRun

FailedTests returns the tests that failed in this Nabaz run.

func (*NabazRun) GetTestRun

func (r *NabazRun) GetTestRun(testName string) *TestRun

GetTestRun returns the test run info for the given test name.

func (*NabazRun) PreviousTestRun

func (r *NabazRun) PreviousTestRun(testName string) *SkippedTest

PreviousTestRun returns the previous test run outcome of a test that wasn't run this time around.

type ResultTelemetry

type ResultTelemetry struct {
	RepoName        string  `json:"repo_name"`
	Os              string  `json:"os"`
	Arch            string  `json:"arch"`
	RunDuration     float64 `json:"run_duration"`
	LongestDuration float64 `json:"longest_duration"`
	TestsSkipped    int     `json:"skipped_tests"`
	TestsRan        int     `json:"ran_tests"`
	TestsFailed     int     `json:"failed_tests"`
}

type SkippedTest

type SkippedTest struct {
	Name     string `json:"name"`
	RunIDRef int64  `json:"run_id_reference"`
}

type Telemetry

type Telemetry interface {
}

type TestRun

type TestRun struct {
	Name          string        `json:"name"`
	Success       bool          `json:"success"`
	TimeInMs      float64       `json:"time_in_ms"`
	CallGraph     []*code.Scope `json:"call_graph"`
	TestFuncScope *code.Scope   `json:"test_func_scope"`
}

Jump to

Keyboard shortcuts

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