results

package
v0.0.0-...-f1f82f3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssertionResult

type AssertionResult struct {
	Index      int
	FailInfo   []string
	Passed     bool
	AssertType string
	Not        bool
	CustomInfo string
}

AssertionResult result return by Assertion.Assert

type TestJobResult

type TestJobResult struct {
	DisplayName   string
	Index         int
	Passed        bool
	ExecError     error
	AssertsResult []*AssertionResult
	Duration      time.Duration
}

TestJobResult result return by TestJob.Run

func (TestJobResult) Stringify

func (tjr TestJobResult) Stringify() string

Stringify writing the object to a customized formatted string.

type TestSuiteResult

type TestSuiteResult struct {
	DisplayName      string
	FilePath         string
	Passed           bool
	ExecError        error
	TestsResult      []*TestJobResult
	SnapshotCounting struct {
		Total    uint
		Failed   uint
		Created  uint
		Vanished uint
	}
}

TestSuiteResult result return by TestSuite.Run

func (*TestSuiteResult) CalculateTestSuiteDuration

func (tsr *TestSuiteResult) CalculateTestSuiteDuration() time.Duration

CalculateTestSuiteDuration to calculate the total duration of the testsuite.

func (*TestSuiteResult) CountSnapshot

func (tsr *TestSuiteResult) CountSnapshot(cache *snapshot.Cache)

CountSnapshot counting the snaphots.

func (TestSuiteResult) Print

func (tsr TestSuiteResult) Print(printer *printer.Printer, verbosity int)

Print printing the testresult output.

Jump to

Keyboard shortcuts

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