Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package operation
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"pet-house.com/core/server/database"
|
||||
)
|
||||
|
||||
func TestCreateOplog(t *testing.T) {
|
||||
database.Instance().AutoMigrate(&Oplog{})
|
||||
t.Run("test create op log", func(t *testing.T) {
|
||||
record := &Oplog{}
|
||||
if err := CreateOplog(record); err != nil {
|
||||
t.Errorf("test create op log get %s", err.Error())
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user