kfc_test.go 485 B

123456789101112131415161718192021222324
  1. package kfc
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestKfcKfcDelver(t *testing.T) {
  8. convey.Convey("KfcDelver", t, func(ctx convey.C) {
  9. var (
  10. c = context.Background()
  11. id = int64(1)
  12. mid = int64(5248758)
  13. )
  14. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  15. err := d.KfcDelver(c, id, mid)
  16. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  17. ctx.So(err, convey.ShouldNotBeNil)
  18. })
  19. })
  20. })
  21. }