testcase

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the testcase type in the database.
	Label = "test_case"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldResult holds the string denoting the result field in the database.
	FieldResult = "result"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldElapsed holds the string denoting the elapsed field in the database.
	FieldElapsed = "elapsed"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// EdgeRun holds the string denoting the run edge name in mutations.
	EdgeRun = "run"
	// Table holds the table name of the testcase in the database.
	Table = "test_case"
	// RunTable is the table that holds the run relation/edge.
	RunTable = "test_case"
	// RunInverseTable is the table name for the TestRun entity.
	// It exists in this package in order to avoid circular dependency with the "testrun" package.
	RunInverseTable = "test_run"
	// RunColumn is the table column denoting the run relation/edge.
	RunColumn = "test_case_run"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// MessageValidator is a validator for the "message" field. It is called by the builders before save.
	MessageValidator func(string) error
	// DefaultElapsed holds the default value on creation for the "elapsed" field.
	DefaultElapsed float64
	// ElapsedValidator is a validator for the "elapsed" field. It is called by the builders before save.
	ElapsedValidator func(float64) error
)

Columns holds all SQL columns for testcase fields.

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

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

Functions

func And

func And(predicates ...predicate.TestCase) predicate.TestCase

And groups predicates with the AND operator between them.

func Elapsed

func Elapsed(v float64) predicate.TestCase

Elapsed applies equality check predicate on the "elapsed" field. It's identical to ElapsedEQ.

func ElapsedEQ

func ElapsedEQ(v float64) predicate.TestCase

ElapsedEQ applies the EQ predicate on the "elapsed" field.

func ElapsedGT

func ElapsedGT(v float64) predicate.TestCase

ElapsedGT applies the GT predicate on the "elapsed" field.

func ElapsedGTE

func ElapsedGTE(v float64) predicate.TestCase

ElapsedGTE applies the GTE predicate on the "elapsed" field.

func ElapsedIn

func ElapsedIn(vs ...float64) predicate.TestCase

ElapsedIn applies the In predicate on the "elapsed" field.

func ElapsedLT

func ElapsedLT(v float64) predicate.TestCase

ElapsedLT applies the LT predicate on the "elapsed" field.

func ElapsedLTE

func ElapsedLTE(v float64) predicate.TestCase

ElapsedLTE applies the LTE predicate on the "elapsed" field.

func ElapsedNEQ

func ElapsedNEQ(v float64) predicate.TestCase

ElapsedNEQ applies the NEQ predicate on the "elapsed" field.

func ElapsedNotIn

func ElapsedNotIn(vs ...float64) predicate.TestCase

ElapsedNotIn applies the NotIn predicate on the "elapsed" field.

func HasRun

func HasRun() predicate.TestCase

HasRun applies the HasEdge predicate on the "run" edge.

func HasRunWith

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

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

func ID

func ID(id int) predicate.TestCase

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.TestCase

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.TestCase

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.TestCase

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.TestCase

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.TestCase

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.TestCase

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Message

func Message(v string) predicate.TestCase

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.TestCase

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.TestCase

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

func MessageEQ(v string) predicate.TestCase

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.TestCase

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

func MessageGT(v string) predicate.TestCase

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v string) predicate.TestCase

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.TestCase

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.TestCase

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

func MessageIn(vs ...string) predicate.TestCase

MessageIn applies the In predicate on the "message" field.

func MessageLT

func MessageLT(v string) predicate.TestCase

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v string) predicate.TestCase

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v string) predicate.TestCase

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

func MessageNotIn(vs ...string) predicate.TestCase

MessageNotIn applies the NotIn predicate on the "message" field.

func MetadataIsNil

func MetadataIsNil() predicate.TestCase

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

func MetadataNotNil

func MetadataNotNil() predicate.TestCase

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

func Name

func Name(v string) predicate.TestCase

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.TestCase

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.TestCase

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.TestCase

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.TestCase

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.TestCase

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.TestCase

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.TestCase

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.TestCase

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.TestCase

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.TestCase

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.TestCase

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.TestCase

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.TestCase

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.TestCase) predicate.TestCase

Or groups predicates with the OR operator between them.

func Result

func Result(v bool) predicate.TestCase

Result applies equality check predicate on the "result" field. It's identical to ResultEQ.

func ResultEQ

func ResultEQ(v bool) predicate.TestCase

ResultEQ applies the EQ predicate on the "result" field.

func ResultNEQ

func ResultNEQ(v bool) predicate.TestCase

ResultNEQ applies the NEQ predicate on the "result" 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