Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TestCase) predicate.TestCase
- func Elapsed(v float64) predicate.TestCase
- func ElapsedEQ(v float64) predicate.TestCase
- func ElapsedGT(v float64) predicate.TestCase
- func ElapsedGTE(v float64) predicate.TestCase
- func ElapsedIn(vs ...float64) predicate.TestCase
- func ElapsedLT(v float64) predicate.TestCase
- func ElapsedLTE(v float64) predicate.TestCase
- func ElapsedNEQ(v float64) predicate.TestCase
- func ElapsedNotIn(vs ...float64) predicate.TestCase
- func HasRun() predicate.TestCase
- func HasRunWith(preds ...predicate.TestRun) predicate.TestCase
- func ID(id int) predicate.TestCase
- func IDEQ(id int) predicate.TestCase
- func IDGT(id int) predicate.TestCase
- func IDGTE(id int) predicate.TestCase
- func IDIn(ids ...int) predicate.TestCase
- func IDLT(id int) predicate.TestCase
- func IDLTE(id int) predicate.TestCase
- func IDNEQ(id int) predicate.TestCase
- func IDNotIn(ids ...int) predicate.TestCase
- func Message(v string) predicate.TestCase
- func MessageContains(v string) predicate.TestCase
- func MessageContainsFold(v string) predicate.TestCase
- func MessageEQ(v string) predicate.TestCase
- func MessageEqualFold(v string) predicate.TestCase
- func MessageGT(v string) predicate.TestCase
- func MessageGTE(v string) predicate.TestCase
- func MessageHasPrefix(v string) predicate.TestCase
- func MessageHasSuffix(v string) predicate.TestCase
- func MessageIn(vs ...string) predicate.TestCase
- func MessageLT(v string) predicate.TestCase
- func MessageLTE(v string) predicate.TestCase
- func MessageNEQ(v string) predicate.TestCase
- func MessageNotIn(vs ...string) predicate.TestCase
- func MetadataIsNil() predicate.TestCase
- func MetadataNotNil() predicate.TestCase
- func Name(v string) predicate.TestCase
- func NameContains(v string) predicate.TestCase
- func NameContainsFold(v string) predicate.TestCase
- func NameEQ(v string) predicate.TestCase
- func NameEqualFold(v string) predicate.TestCase
- func NameGT(v string) predicate.TestCase
- func NameGTE(v string) predicate.TestCase
- func NameHasPrefix(v string) predicate.TestCase
- func NameHasSuffix(v string) predicate.TestCase
- func NameIn(vs ...string) predicate.TestCase
- func NameLT(v string) predicate.TestCase
- func NameLTE(v string) predicate.TestCase
- func NameNEQ(v string) predicate.TestCase
- func NameNotIn(vs ...string) predicate.TestCase
- func Not(p predicate.TestCase) predicate.TestCase
- func Or(predicates ...predicate.TestCase) predicate.TestCase
- func Result(v bool) predicate.TestCase
- func ResultEQ(v bool) predicate.TestCase
- func ResultNEQ(v bool) predicate.TestCase
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldName, FieldResult, FieldMessage, FieldElapsed, FieldMetadata, }
Columns holds all SQL columns for testcase fields.
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 Elapsed ¶
Elapsed applies equality check predicate on the "elapsed" field. It's identical to ElapsedEQ.
func ElapsedGTE ¶
ElapsedGTE applies the GTE predicate on the "elapsed" field.
func ElapsedLTE ¶
ElapsedLTE applies the LTE predicate on the "elapsed" field.
func ElapsedNEQ ¶
ElapsedNEQ applies the NEQ predicate on the "elapsed" field.
func ElapsedNotIn ¶
ElapsedNotIn applies the NotIn predicate on the "elapsed" field.
func HasRunWith ¶
HasRunWith applies the HasEdge predicate on the "run" edge with a given conditions (other predicates).
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Result ¶
Result applies equality check predicate on the "result" field. It's identical to ResultEQ.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.