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 {
	HashedId string `json:"hashed_id"`
	Os       string `json:"os"`
	Arch     string `json:"arch"`
}

type FailedTest

type FailedTest struct {
	Name      string
	FileLink  string
	Err       string
	IsSubTest bool
}

type NabazOutput

type NabazOutput struct {
	IsThinking     bool
	IsRunningTests bool
	IsFirstRun     bool
	Err            string
	FailedTests    []FailedTest
}

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 OutputState

type OutputState struct {
	PreviousTestsFailedOutput string
	FailedTests               []FailedTest
}

func (*OutputState) AddFailedTest

func (o *OutputState) AddFailedTest(failedTest FailedTest)

func (*OutputState) FailedTestIndex

func (o *OutputState) FailedTestIndex(failedTest string) (test *FailedTest, index int)

func (*OutputState) RemoveRottonTest

func (o *OutputState) RemoveRottonTest(index int)

func (*OutputState) UpdateFailedTestError

func (o *OutputState) UpdateFailedTestError(index int, newError string)

type ResultTelemetry

type ResultTelemetry struct {
	HashedId        string  `json:"hashed_id"`
	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