Help us shape the future of Go! Take the 2026 Go Developer Survey

model

package
v0.3.0-beta Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type PageInfo

type PageInfo struct {
	// Whether there are more pages
	HasNextPage bool `json:"hasNextPage"`
	// Total count of items
	TotalCount int `json:"totalCount"`
}

Pagination information

type Query

type Query struct{}

Query root type

type RunStats

type RunStats struct {
	// Total number of tests
	TotalTests int `json:"totalTests"`
	// Number of passed tests
	PassedTests int `json:"passedTests"`
	// Number of failed tests
	FailedTests int `json:"failedTests"`
	// Number of skipped tests
	SkippedTests int `json:"skippedTests"`
	// Total number of steps
	TotalSteps int `json:"totalSteps"`
	// Latest test execution time
	LatestUpdate *time.Time `json:"latestUpdate,omitempty"`
}

Statistics for a test run

type TestCaseConnection added in v0.2.4

type TestCaseConnection struct {
	// List of test case runs
	Nodes []*models.Test `json:"nodes"`
	// Pagination information
	PageInfo *PageInfo `json:"pageInfo"`
}

TestCaseRun connection for pagination

type TestCaseFilter

type TestCaseFilter struct {
	// Filter by run ID
	RunID *string `json:"runId,omitempty"`
	// Filter by status
	Status *string `json:"status,omitempty"`
	// Search by title (case-insensitive)
	TitleContains *string `json:"titleContains,omitempty"`
}

Input for filtering test cases

type TestConnection added in v0.2.4

type TestConnection = TestCaseConnection

type TestStatus

type TestStatus string

TestStatus represents the status of a test execution

const (
	TestStatusPassed      TestStatus = "PASSED"
	TestStatusFailed      TestStatus = "FAILED"
	TestStatusSkipped     TestStatus = "SKIPPED"
	TestStatusRunning     TestStatus = "RUNNING"
	TestStatusPending     TestStatus = "PENDING"
	TestStatusBroken      TestStatus = "BROKEN"
	TestStatusTimedout    TestStatus = "TIMEDOUT"
	TestStatusInterrupted TestStatus = "INTERRUPTED"
)

func (TestStatus) IsValid

func (e TestStatus) IsValid() bool

func (TestStatus) MarshalGQL

func (e TestStatus) MarshalGQL(w io.Writer)

func (TestStatus) MarshalJSON

func (e TestStatus) MarshalJSON() ([]byte, error)

func (TestStatus) String

func (e TestStatus) String() string

func (*TestStatus) UnmarshalGQL

func (e *TestStatus) UnmarshalGQL(v any) error

func (*TestStatus) UnmarshalJSON

func (e *TestStatus) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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