c1e9d93037
Document Sync and Job Sync * docsyncfunc * startedQueryWork * morefixes * jobsyncsvcstart * save * jobsynctext * save * save * docsync * shorttest * jobsync * jobsyncupdateoncollectorupdate * passlivetest * collectortest * lint
25 lines
576 B
Go
25 lines
576 B
Go
package documenttext_test
|
|
|
|
import (
|
|
documenttext "queryorchestration/internal/document/text"
|
|
textversion "queryorchestration/internal/document/text/version"
|
|
"queryorchestration/internal/serviceconfig"
|
|
"queryorchestration/internal/serviceconfig/queue/querysync"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
type DocTextConfig struct {
|
|
serviceconfig.BaseConfig
|
|
querysync.QuerySyncConfig
|
|
}
|
|
|
|
func TestService(t *testing.T) {
|
|
cfg := &DocTextConfig{}
|
|
svc := documenttext.New(cfg, &documenttext.Services{
|
|
Version: textversion.New(cfg),
|
|
})
|
|
assert.NotNil(t, svc)
|
|
}
|