archive_test.go 814 B

12345678910111213141516171819202122232425262728293031323334
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaotypesURI(t *testing.T) {
  8. convey.Convey("typesURI", t, func(ctx convey.C) {
  9. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  10. p1 := testDao.typesURI()
  11. ctx.Convey("Then p1 should not be nil.", func(ctx convey.C) {
  12. ctx.So(p1, convey.ShouldNotBeNil)
  13. })
  14. })
  15. })
  16. }
  17. func TestDaoTypeMapping(t *testing.T) {
  18. convey.Convey("TypeMapping", t, func(ctx convey.C) {
  19. var (
  20. c = context.Background()
  21. )
  22. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  23. rmap, err := testDao.TypeMapping(c)
  24. ctx.Convey("Then err should be nil.rmap should not be nil.", func(ctx convey.C) {
  25. ctx.So(err, convey.ShouldBeNil)
  26. ctx.So(rmap, convey.ShouldNotBeNil)
  27. })
  28. })
  29. })
  30. }