uniquecheck_test.go 680 B

12345678910111213141516171819202122232425262728
  1. package service
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestServiceNewUniqueCheck(t *testing.T) {
  7. convey.Convey("NewUniqueCheck", t, func(ctx convey.C) {
  8. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  9. p1 := NewUniqueCheck()
  10. ctx.Convey("Then p1 should not be nil.", func(ctx convey.C) {
  11. ctx.So(p1, convey.ShouldNotBeNil)
  12. })
  13. })
  14. })
  15. }
  16. func TestServiceloadMcnUniqueCache(t *testing.T) {
  17. convey.Convey("loadMcnUniqueCache", t, func(ctx convey.C) {
  18. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  19. s.loadMcnUniqueCache()
  20. ctx.Convey("No return values", func(ctx convey.C) {
  21. })
  22. })
  23. })
  24. }