2025-01-23 14:56:20 +00:00
|
|
|
package documentclean_test
|
|
|
|
|
|
|
|
|
|
import (
|
2025-03-05 12:05:46 +00:00
|
|
|
"testing"
|
|
|
|
|
|
2025-01-24 16:12:25 +00:00
|
|
|
documentclean "queryorchestration/internal/document/clean"
|
2025-02-07 12:12:51 +00:00
|
|
|
"queryorchestration/internal/serviceconfig"
|
2025-02-28 13:11:53 +00:00
|
|
|
"queryorchestration/internal/serviceconfig/objectstore"
|
2025-02-07 12:12:51 +00:00
|
|
|
"queryorchestration/internal/serviceconfig/queue/documenttext"
|
2025-01-23 14:56:20 +00:00
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
)
|
|
|
|
|
|
2025-02-07 12:12:51 +00:00
|
|
|
type DocCleanConfig struct {
|
|
|
|
|
serviceconfig.BaseConfig
|
|
|
|
|
documenttext.DocTextConfig
|
2025-02-28 13:11:53 +00:00
|
|
|
objectstore.ConfigProvider
|
2025-01-23 14:56:20 +00:00
|
|
|
}
|
2025-01-29 11:52:37 +00:00
|
|
|
|
2025-02-07 12:12:51 +00:00
|
|
|
func TestService(t *testing.T) {
|
|
|
|
|
cfg := &DocCleanConfig{}
|
2025-03-11 18:15:49 +00:00
|
|
|
svc := documentclean.New(cfg)
|
2025-02-07 12:12:51 +00:00
|
|
|
assert.NotNil(t, svc)
|
2025-01-29 11:52:37 +00:00
|
|
|
}
|