Commit 903e21be authored by miraclesu's avatar miraclesu

orm: add test case for InsertMulti

parent 3a3f7002
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment