24a038ec3d
DocTextRunner Structure * firstround * shorttests
27 lines
637 B
Go
27 lines
637 B
Go
package documenttext_test
|
|
|
|
import (
|
|
"queryorchestration/internal/document"
|
|
documenttext "queryorchestration/internal/document/text"
|
|
"queryorchestration/internal/serviceconfig"
|
|
"queryorchestration/internal/serviceconfig/objectstore"
|
|
"queryorchestration/internal/serviceconfig/queue/querysync"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
type DocTextConfig struct {
|
|
serviceconfig.BaseConfig
|
|
objectstore.ObjectStoreConfig
|
|
querysync.QuerySyncConfig
|
|
}
|
|
|
|
func TestService(t *testing.T) {
|
|
cfg := &DocTextConfig{}
|
|
svc := documenttext.New(cfg, &documenttext.Services{
|
|
Document: document.New(cfg),
|
|
})
|
|
assert.NotNil(t, svc)
|
|
}
|