cache_test.go 696 B

1234567891011121314151617181920212223242526272829
  1. package bnj
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestBnjtimeFinishKey(t *testing.T) {
  7. convey.Convey("timeFinishKey", t, func(ctx convey.C) {
  8. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  9. p1 := timeFinishKey()
  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 TestBnjlessTimeKey(t *testing.T) {
  17. convey.Convey("lessTimeKey", t, func(ctx convey.C) {
  18. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  19. p1 := lessTimeKey()
  20. ctx.Convey("Then p1 should not be nil.", func(ctx convey.C) {
  21. ctx.So(p1, convey.ShouldNotBeNil)
  22. })
  23. })
  24. })
  25. }