2025-01-29 11:52:37 +00:00
|
|
|
package documenttext_test
|
|
|
|
|
|
|
|
|
|
import (
|
2025-03-05 12:05:46 +00:00
|
|
|
"testing"
|
|
|
|
|
|
2025-01-29 11:52:37 +00:00
|
|
|
documenttext "queryorchestration/internal/document/text"
|
2025-02-07 14:15:06 +00:00
|
|
|
"queryorchestration/internal/serviceconfig"
|
2025-04-02 18:50:03 +00:00
|
|
|
"queryorchestration/internal/serviceconfig/aws"
|
|
|
|
|
"queryorchestration/internal/serviceconfig/objectstore"
|
2025-02-07 14:15:06 +00:00
|
|
|
"queryorchestration/internal/serviceconfig/queue/querysync"
|
2025-03-20 11:06:41 +00:00
|
|
|
"queryorchestration/internal/serviceconfig/textract"
|
2025-01-29 11:52:37 +00:00
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
)
|
|
|
|
|
|
2025-02-07 14:15:06 +00:00
|
|
|
type DocTextConfig struct {
|
2025-04-02 18:50:03 +00:00
|
|
|
aws.AWSConfig
|
2025-02-07 14:15:06 +00:00
|
|
|
serviceconfig.BaseConfig
|
|
|
|
|
querysync.QuerySyncConfig
|
2025-03-20 11:06:41 +00:00
|
|
|
textract.TextractConfig
|
2025-04-02 18:50:03 +00:00
|
|
|
objectstore.ObjectStoreConfig
|
2025-01-29 11:52:37 +00:00
|
|
|
}
|
|
|
|
|
|
2025-02-07 14:15:06 +00:00
|
|
|
func TestService(t *testing.T) {
|
|
|
|
|
cfg := &DocTextConfig{}
|
2025-03-11 18:15:49 +00:00
|
|
|
svc := documenttext.New(cfg)
|
2025-02-07 14:15:06 +00:00
|
|
|
assert.NotNil(t, svc)
|
2025-01-29 11:52:37 +00:00
|
|
|
}
|