audio_test.go 848 B

1234567891011121314151617181920212223242526272829303132333435
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDao_AudioCard(t *testing.T) {
  8. convey.Convey("test audio card", t, func(ctx convey.C) {
  9. mid := int64(28272030)
  10. data, err := d.AudioCard(context.Background(), mid)
  11. convey.So(err, convey.ShouldBeNil)
  12. convey.Printf("%v", data)
  13. })
  14. }
  15. func TestDao_AudioUpperCert(t *testing.T) {
  16. convey.Convey("test audio upper cert", t, func(ctx convey.C) {
  17. mid := int64(28272030)
  18. data, err := d.AudioUpperCert(context.Background(), mid)
  19. convey.So(err, convey.ShouldBeNil)
  20. convey.Printf("%v", data)
  21. })
  22. }
  23. func TestDao_AudioCnt(t *testing.T) {
  24. convey.Convey("test audio cnt", t, func(ctx convey.C) {
  25. mid := int64(28272030)
  26. data, err := d.AudioCnt(context.Background(), mid)
  27. convey.So(err, convey.ShouldBeNil)
  28. convey.Printf("%v", data)
  29. })
  30. }