2025-02-12 19:00:25 +00:00
|
|
|
package documentinit
|
2025-02-03 17:30:50 +00:00
|
|
|
|
|
|
|
|
import (
|
2025-02-12 19:00:25 +00:00
|
|
|
"queryorchestration/internal/serviceconfig"
|
|
|
|
|
"queryorchestration/internal/serviceconfig/queue/documentsync"
|
2025-02-03 17:30:50 +00:00
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
)
|
|
|
|
|
|
2025-02-12 19:00:25 +00:00
|
|
|
type DocInitConfig struct {
|
|
|
|
|
serviceconfig.BaseConfig
|
|
|
|
|
documentsync.DocSyncConfig
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-03 17:30:50 +00:00
|
|
|
func TestNew(t *testing.T) {
|
2025-02-12 19:00:25 +00:00
|
|
|
svc := New(&DocInitConfig{})
|
2025-02-03 17:30:50 +00:00
|
|
|
assert.NotNil(t, svc)
|
2025-02-12 19:00:25 +00:00
|
|
|
|
2025-02-03 17:30:50 +00:00
|
|
|
}
|