db_operate_test.go 387 B

123456789101112131415161718192021
  1. package cms
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestCmsUnshelveArcs(t *testing.T) {
  8. var (
  9. c = context.Background()
  10. ids = []int64{123}
  11. )
  12. convey.Convey("UnshelveArcs", t, func(ctx convey.C) {
  13. err := d.UnshelveArcs(c, ids)
  14. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  15. ctx.So(err, convey.ShouldBeNil)
  16. })
  17. })
  18. }