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.
 
 
 

36 lines
765 B

package archive
import (
"context"
"testing"
"go-common/app/admin/main/videoup/model/archive"
. "github.com/smartystreets/goconvey/convey"
)
func Test_PorderConfig(t *testing.T) {
Convey("PorderConfig", t, WithDao(func(d *Dao) {
p, err := d.PorderConfig(context.TODO())
So(err, ShouldBeNil)
So(p, ShouldNotBeNil)
}))
}
func Test_Porder(t *testing.T) {
Convey("test archive", t, WithDao(func(d *Dao) {
p, err := d.Porder(context.Background(), 10098814)
So(err, ShouldBeNil)
So(p, ShouldNotBeNil)
}))
}
func Test_TxUpPorder(t *testing.T) {
var c = context.Background()
Convey("TxUpPorder", t, WithDao(func(d *Dao) {
tx, _ := d.BeginTran(c)
_, err := d.TxUpPorder(tx, 0, &archive.ArcParam{})
So(err, ShouldBeNil)
tx.Commit()
}))
}