You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
522 B
30 lines
522 B
package service |
|
|
|
import ( |
|
"flag" |
|
"testing" |
|
|
|
. "github.com/smartystreets/goconvey/convey" |
|
|
|
"go-common/app/job/live/dao-anchor-job/internal/conf" |
|
) |
|
|
|
func init() { |
|
flag.Set("conf", "../../cmd/test.toml") |
|
if err := conf.Init(); err != nil { |
|
panic(err) |
|
} |
|
s = New(conf.Conf) |
|
} |
|
func TestMinuteDataToCacheList(t *testing.T) { |
|
Convey("testMinuteDataToCacheList", t, func() { |
|
s.minuteDataToCacheList() |
|
}) |
|
|
|
} |
|
func TestMinuteDataToDB(t *testing.T) { |
|
Convey("TestMinuteDataToDB", t, func() { |
|
s.minuteDataToDB() |
|
}) |
|
|
|
}
|
|
|