testrun

package
v0.0.0-...-aca7f8d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the testrun type in the database.
	Label = "test_run"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTool holds the string denoting the tool field in the database.
	FieldTool = "tool"
	// FieldTime holds the string denoting the time field in the database.
	FieldTime = "time"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// EdgeRelease holds the string denoting the release edge name in mutations.
	EdgeRelease = "release"
	// EdgeEntry holds the string denoting the entry edge name in mutations.
	EdgeEntry = "entry"
	// EdgeTests holds the string denoting the tests edge name in mutations.
	EdgeTests = "tests"
	// Table holds the table name of the testrun in the database.
	Table = "test_run"
	// ReleaseTable is the table that holds the release relation/edge.
	ReleaseTable = "test_run"
	// ReleaseInverseTable is the table name for the Release entity.
	// It exists in this package in order to avoid circular dependency with the "release" package.
	ReleaseInverseTable = "release"
	// ReleaseColumn is the table column denoting the release relation/edge.
	ReleaseColumn = "test_run_release"
	// EntryTable is the table that holds the entry relation/edge.
	EntryTable = "test_run"
	// EntryInverseTable is the table name for the ReleaseEntry entity.
	// It exists in this package in order to avoid circular dependency with the "releaseentry" package.
	EntryInverseTable = "release_entry"
	// EntryColumn is the table column denoting the entry relation/edge.
	EntryColumn = "release_entry_test_run"
	// TestsTable is the table that holds the tests relation/edge.
	TestsTable = "test_case"
	// TestsInverseTable is the table name for the TestCase entity.
	// It exists in this package in order to avoid circular dependency with the "testcase" package.
	TestsInverseTable = "test_case"
	// TestsColumn is the table column denoting the tests relation/edge.
	TestsColumn = "test_case_run"
)

Variables

View Source
var (
	Hooks [1]ent.Hook
	// ToolValidator is a validator for the "tool" field. It is called by the builders before save.
	ToolValidator func(string) error
	// DefaultTime holds the default value on creation for the "time" field.
	DefaultTime func() time.Time
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/valocode/bubbly/ent/runtime"

Columns holds all SQL columns for testrun fields.

View Source
var ForeignKeys = []string{
	"release_entry_test_run",
	"test_run_release",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "test_run" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.TestRun) predicate.TestRun

And groups predicates with the AND operator between them.

func HasEntry

func HasEntry() predicate.TestRun

HasEntry applies the HasEdge predicate on the "entry" edge.

func HasEntryWith

func HasEntryWith(preds ...predicate.ReleaseEntry) predicate.TestRun

HasEntryWith applies the HasEdge predicate on the "entry" edge with a given conditions (other predicates).

func HasRelease

func HasRelease() predicate.TestRun

HasRelease applies the HasEdge predicate on the "release" edge.

func HasReleaseWith

func HasReleaseWith(preds ...predicate.Release) predicate.TestRun

HasReleaseWith applies the HasEdge predicate on the "release" edge with a given conditions (other predicates).

func HasTests

func HasTests() predicate.TestRun

HasTests applies the HasEdge predicate on the "tests" edge.

func HasTestsWith

func HasTestsWith(preds ...predicate.TestCase) predicate.TestRun

HasTestsWith applies the HasEdge predicate on the "tests" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.TestRun

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.TestRun

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.TestRun

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.TestRun

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.TestRun

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.TestRun

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.TestRun

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.TestRun

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.TestRun

IDNotIn applies the NotIn predicate on the ID field.

func MetadataIsNil

func MetadataIsNil() predicate.TestRun

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.TestRun

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.TestRun) predicate.TestRun

Or groups predicates with the OR operator between them.

func Time

func Time(v time.Time) predicate.TestRun

Time applies equality check predicate on the "time" field. It's identical to TimeEQ.

func TimeEQ

func TimeEQ(v time.Time) predicate.TestRun

TimeEQ applies the EQ predicate on the "time" field.

func TimeGT

func TimeGT(v time.Time) predicate.TestRun

TimeGT applies the GT predicate on the "time" field.

func TimeGTE

func TimeGTE(v time.Time) predicate.TestRun

TimeGTE applies the GTE predicate on the "time" field.

func TimeIn

func TimeIn(vs ...time.Time) predicate.TestRun

TimeIn applies the In predicate on the "time" field.

func TimeLT

func TimeLT(v time.Time) predicate.TestRun

TimeLT applies the LT predicate on the "time" field.

func TimeLTE

func TimeLTE(v time.Time) predicate.TestRun

TimeLTE applies the LTE predicate on the "time" field.

func TimeNEQ

func TimeNEQ(v time.Time) predicate.TestRun

TimeNEQ applies the NEQ predicate on the "time" field.

func TimeNotIn

func TimeNotIn(vs ...time.Time) predicate.TestRun

TimeNotIn applies the NotIn predicate on the "time" field.

func Tool

func Tool(v string) predicate.TestRun

Tool applies equality check predicate on the "tool" field. It's identical to ToolEQ.

func ToolContains

func ToolContains(v string) predicate.TestRun

ToolContains applies the Contains predicate on the "tool" field.

func ToolContainsFold

func ToolContainsFold(v string) predicate.TestRun

ToolContainsFold applies the ContainsFold predicate on the "tool" field.

func ToolEQ

func ToolEQ(v string) predicate.TestRun

ToolEQ applies the EQ predicate on the "tool" field.

func ToolEqualFold

func ToolEqualFold(v string) predicate.TestRun

ToolEqualFold applies the EqualFold predicate on the "tool" field.

func ToolGT

func ToolGT(v string) predicate.TestRun

ToolGT applies the GT predicate on the "tool" field.

func ToolGTE

func ToolGTE(v string) predicate.TestRun

ToolGTE applies the GTE predicate on the "tool" field.

func ToolHasPrefix

func ToolHasPrefix(v string) predicate.TestRun

ToolHasPrefix applies the HasPrefix predicate on the "tool" field.

func ToolHasSuffix

func ToolHasSuffix(v string) predicate.TestRun

ToolHasSuffix applies the HasSuffix predicate on the "tool" field.

func ToolIn

func ToolIn(vs ...string) predicate.TestRun

ToolIn applies the In predicate on the "tool" field.

func ToolLT

func ToolLT(v string) predicate.TestRun

ToolLT applies the LT predicate on the "tool" field.

func ToolLTE

func ToolLTE(v string) predicate.TestRun

ToolLTE applies the LTE predicate on the "tool" field.

func ToolNEQ

func ToolNEQ(v string) predicate.TestRun

ToolNEQ applies the NEQ predicate on the "tool" field.

func ToolNotIn

func ToolNotIn(vs ...string) predicate.TestRun

ToolNotIn applies the NotIn predicate on the "tool" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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