bnj_test.go 475 B

123456789101112131415161718192021
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDao_Bnj2019Conf(t *testing.T) {
  8. convey.Convey("ElecShow", t, func(ctx convey.C) {
  9. var c = context.Background()
  10. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  11. rs, err := d.Bnj2019Conf(c)
  12. ctx.Convey("Then err should be nil.rs should not be nil.", func(ctx convey.C) {
  13. ctx.So(err, convey.ShouldBeNil)
  14. ctx.Printf("%+v", rs)
  15. })
  16. })
  17. })
  18. }