0815cb35fb
Basic Lint Checks * basic
26 lines
577 B
Go
26 lines
577 B
Go
package documenttext_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
documenttext "queryorchestration/internal/document/text"
|
|
textversion "queryorchestration/internal/document/text/version"
|
|
"queryorchestration/internal/serviceconfig"
|
|
"queryorchestration/internal/serviceconfig/queue/querysync"
|
|
|
|
"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)
|
|
}
|