cover_test.go 389 B

1234567891011121314151617181920212223242526
  1. package service
  2. import (
  3. "flag"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. "go-common/app/job/live/dao-anchor-job/internal/conf"
  7. )
  8. var s *Service
  9. func init() {
  10. flag.Set("conf", "../../cmd/test.toml")
  11. if err := conf.Init(); err != nil {
  12. panic(err)
  13. }
  14. s = New(conf.Conf)
  15. }
  16. func TestCover(t *testing.T) {
  17. Convey("testCover", t, func() {
  18. s.updateKeyFrame()
  19. })
  20. }