Documentation ¶
Overview ¶
Package specs defines test specifications for rel's adapter.
Index ¶
- func Aggregate(t *testing.T, repo rel.Repository)
- func CheckConstraint(t *testing.T, repo rel.Repository)
- func Delete(t *testing.T, repo rel.Repository)
- func DeleteAll(t *testing.T, repo rel.Repository)
- func ForeignKeyConstraint(t *testing.T, repo rel.Repository)
- func Insert(t *testing.T, repo rel.Repository)
- func InsertAll(t *testing.T, repo rel.Repository)
- func InsertBelongsTo(t *testing.T, repo rel.Repository)
- func InsertHasMany(t *testing.T, repo rel.Repository)
- func InsertHasOne(t *testing.T, repo rel.Repository)
- func Inserts(t *testing.T, repo rel.Repository)
- func PreloadBelongsTo(t *testing.T, repo rel.Repository)
- func PreloadBelongsToSlice(t *testing.T, repo rel.Repository)
- func PreloadBelongsToWithQuery(t *testing.T, repo rel.Repository)
- func PreloadHasMany(t *testing.T, repo rel.Repository)
- func PreloadHasManySlice(t *testing.T, repo rel.Repository)
- func PreloadHasManyWithQuery(t *testing.T, repo rel.Repository)
- func PreloadHasOne(t *testing.T, repo rel.Repository)
- func PreloadHasOneSlice(t *testing.T, repo rel.Repository)
- func PreloadHasOneWithQuery(t *testing.T, repo rel.Repository)
- func Query(t *testing.T, repo rel.Repository)
- func QueryJoin(t *testing.T, repo rel.Repository)
- func QueryNotFound(t *testing.T, repo rel.Repository)
- func UniqueConstraint(t *testing.T, repo rel.Repository)
- func Update(t *testing.T, repo rel.Repository)
- func UpdateBelongsToInsert(t *testing.T, repo rel.Repository)
- func UpdateBelongsToUpdate(t *testing.T, repo rel.Repository)
- func UpdateHasManyInsert(t *testing.T, repo rel.Repository)
- func UpdateHasManyReplace(t *testing.T, repo rel.Repository)
- func UpdateHasManyUpdate(t *testing.T, repo rel.Repository)
- func UpdateHasOneInsert(t *testing.T, repo rel.Repository)
- func UpdateHasOneReplace(t *testing.T, repo rel.Repository)
- func UpdateHasOneUpdate(t *testing.T, repo rel.Repository)
- func Updates(t *testing.T, repo rel.Repository)
- type Address
- type Extra
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aggregate ¶
func Aggregate(t *testing.T, repo rel.Repository)
Aggregate tests count specifications.
func CheckConstraint ¶
func CheckConstraint(t *testing.T, repo rel.Repository)
CheckConstraint tests foreign key constraint specifications.
func DeleteAll ¶
func DeleteAll(t *testing.T, repo rel.Repository)
DeleteAll tests delete specifications.
func ForeignKeyConstraint ¶
func ForeignKeyConstraint(t *testing.T, repo rel.Repository)
ForeignKeyConstraint tests foreign key constraint specifications.
func InsertAll ¶
func InsertAll(t *testing.T, repo rel.Repository)
InsertAll tests insert multiple specifications.
func InsertBelongsTo ¶
func InsertBelongsTo(t *testing.T, repo rel.Repository)
func InsertHasMany ¶
func InsertHasMany(t *testing.T, repo rel.Repository)
func InsertHasOne ¶
func InsertHasOne(t *testing.T, repo rel.Repository)
func PreloadBelongsTo ¶
func PreloadBelongsTo(t *testing.T, repo rel.Repository)
func PreloadBelongsToSlice ¶
func PreloadBelongsToSlice(t *testing.T, repo rel.Repository)
func PreloadBelongsToWithQuery ¶
func PreloadBelongsToWithQuery(t *testing.T, repo rel.Repository)
func PreloadHasMany ¶
func PreloadHasMany(t *testing.T, repo rel.Repository)
func PreloadHasManySlice ¶
func PreloadHasManySlice(t *testing.T, repo rel.Repository)
func PreloadHasManyWithQuery ¶
func PreloadHasManyWithQuery(t *testing.T, repo rel.Repository)
func PreloadHasOne ¶
func PreloadHasOne(t *testing.T, repo rel.Repository)
func PreloadHasOneSlice ¶
func PreloadHasOneSlice(t *testing.T, repo rel.Repository)
func PreloadHasOneWithQuery ¶
func PreloadHasOneWithQuery(t *testing.T, repo rel.Repository)
func Query ¶
func Query(t *testing.T, repo rel.Repository)
Query tests query specifications without join.
func QueryJoin ¶
func QueryJoin(t *testing.T, repo rel.Repository)
QueryJoin tests query specifications with join.
func QueryNotFound ¶
func QueryNotFound(t *testing.T, repo rel.Repository)
QueryNotFound tests query specifications when no result found.
func UniqueConstraint ¶
func UniqueConstraint(t *testing.T, repo rel.Repository)
UniqueConstraint tests unique constraint specifications.
func UpdateBelongsToInsert ¶
func UpdateBelongsToInsert(t *testing.T, repo rel.Repository)
func UpdateBelongsToUpdate ¶
func UpdateBelongsToUpdate(t *testing.T, repo rel.Repository)
func UpdateHasManyInsert ¶
func UpdateHasManyInsert(t *testing.T, repo rel.Repository)
func UpdateHasManyReplace ¶
func UpdateHasManyReplace(t *testing.T, repo rel.Repository)
func UpdateHasManyUpdate ¶
func UpdateHasManyUpdate(t *testing.T, repo rel.Repository)
func UpdateHasOneInsert ¶
func UpdateHasOneInsert(t *testing.T, repo rel.Repository)
func UpdateHasOneReplace ¶
func UpdateHasOneReplace(t *testing.T, repo rel.Repository)
func UpdateHasOneUpdate ¶
func UpdateHasOneUpdate(t *testing.T, repo rel.Repository)
Types ¶
type Address ¶
type Address struct { ID int64 User User UserID *int64 Name string CreatedAt time.Time UpdatedAt time.Time }
Address defines addresses schema.
Click to show internal directories.
Click to hide internal directories.