You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.1 KiB

package gormExample
import "testing"
func TestGetByPk(t *testing.T) {
GetByPk()
}
func TestGetOne(t *testing.T) {
GetOne()
}
func TestGetToMap(t *testing.T) {
GetToMap()
}
func TestGetPluck(t *testing.T) {
GetPluck()
}
func TestGetPluckExp(t *testing.T) {
GetPluckExp()
}
func TestGetSelect(t *testing.T) {
GetSelect()
}
func TestGetDistinct(t *testing.T) {
GetDistinct()
}
func TestWhereMethod(t *testing.T) {
WhereMethod()
}
func TestWhereType(t *testing.T) {
WhereType()
}
func TestPlaceHolder(t *testing.T) {
PlaceHolder()
}
func TestOrderBy(t *testing.T) {
OrderBy()
}
func TestPagination(t *testing.T) {
request := Pager{3, 15}
Pagination(request) // offset:30, limit:15
}
func TestPaginationScope(t *testing.T) {
request := Pager{3, 15}
PaginationScope(request)
}
func TestCount(t *testing.T) {
request := Pager{3, 15}
Count(request)
}
func TestGroupHaving(t *testing.T) {
GroupHaving()
}
func TestIterator(t *testing.T) {
Iterator()
}
func TestLocking(t *testing.T) {
Locking()
}
func TestSubQuery(t *testing.T) {
SubQuery()
}
func TestFindHook(t *testing.T) {
FindHook()
}