bilibili-backup/app/service/openplatform/ticket-sales/dao/item_test.go
2019-04-22 02:59:20 +00:00

21 lines
559 B
Go

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)
})
}