playurl_test.go 449 B

12345678910111213141516171819202122
  1. package app
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestAppPlayurl(t *testing.T) {
  8. var (
  9. c = context.Background()
  10. cid = int(2578706)
  11. )
  12. convey.Convey("Playurl", t, func(ctx convey.C) {
  13. playurl, err := d.Playurl(c, cid)
  14. ctx.Convey("Then err should be nil.playurl should not be nil.", func(ctx convey.C) {
  15. ctx.So(err, convey.ShouldBeNil)
  16. ctx.So(playurl, convey.ShouldNotBeNil)
  17. })
  18. })
  19. }