mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 08:00:50 +00:00
orm: add test case for InsertMulti
This commit is contained in:
parent
3a3f70027c
commit
903e21bef2
@ -2042,6 +2042,12 @@ func TestIntegerPk(t *testing.T) {
|
||||
throwFail(t, err)
|
||||
throwFail(t, AssertIs(out.Value, intPk.Value))
|
||||
}
|
||||
|
||||
num, err = dORM.InsertMulti(1, []*IntegerPk{&IntegerPk{
|
||||
ID: 1, Value: "ok",
|
||||
}})
|
||||
throwFail(t, err)
|
||||
throwFail(t, AssertIs(num, 1))
|
||||
}
|
||||
|
||||
func TestInsertAuto(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user