From 903e21bef2fd8f0297d5c2eb88187cbeebc8493b Mon Sep 17 00:00:00 2001 From: miraclesu Date: Wed, 13 Apr 2016 20:20:49 +0800 Subject: [PATCH] orm: add test case for InsertMulti --- orm/orm_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/orm/orm_test.go b/orm/orm_test.go index fa1147f6..3b854f5c 100644 --- a/orm/orm_test.go +++ b/orm/orm_test.go @@ -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) {