You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
559 B

package dao
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestItemBillInfo(t *testing.T) {
convey.Convey("ItemBillInfo", t, func() {
itemID := int64(676)
scID := int64(870)
tkID := int64(2843)
infos, _ := d.ItemBillInfo(context.TODO(), []int64{itemID}, []int64{scID}, []int64{tkID})
convey.So(infos.BaseInfo, convey.ShouldContainKey, itemID)
convey.So(infos.BaseInfo[itemID].Screen, convey.ShouldContainKey, scID)
convey.So(infos.BaseInfo[itemID].Screen[scID].Ticket, convey.ShouldContainKey, tkID)
})
}