mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-07 21:48:31 -05:00
32 lines
409 B
Go
32 lines
409 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"flag"
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
"go-common/app/job/main/aegis/conf"
|
||
|
|
"go-common/library/log"
|
||
|
|
)
|
||
|
|
|
||
|
|
var (
|
||
|
|
s *Service
|
||
|
|
)
|
||
|
|
|
||
|
|
func initConf() {
|
||
|
|
if err := conf.Init(); err != nil {
|
||
|
|
panic(err)
|
||
|
|
}
|
||
|
|
log.Init(conf.Conf.Log)
|
||
|
|
}
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
flag.Set("conf", "../cmd/aegis-job.toml")
|
||
|
|
initConf()
|
||
|
|
s = New(conf.Conf)
|
||
|
|
}
|
||
|
|
|
||
|
|
func Test_syncReport(t *testing.T) {
|
||
|
|
s.syncReport(context.Background())
|
||
|
|
}
|