gorm/tests/tests.go

24 lines
294 B
Go
Raw Normal View History

2020-02-02 09:40:44 +03:00
package tests
import (
"testing"
"time"
"github.com/jinzhu/gorm"
)
func Now() *time.Time {
now := time.Now()
return &now
}
func RunTestsSuit(t *testing.T, db *gorm.DB) {
TestCreate(t, db)
2020-03-04 06:32:36 +03:00
TestFind(t, db)
2020-03-07 08:43:20 +03:00
TestUpdate(t, db)
2020-03-08 09:51:52 +03:00
TestDelete(t, db)
2020-03-08 13:05:22 +03:00
TestGroupBy(t, db)
2020-03-08 14:12:33 +03:00
TestJoins(t, db)
2020-02-02 09:40:44 +03:00
}