Merged in feature/textextraction (pull request #110)
Text Extraction * bases * go * splitting * structure * movetoasync * movetoasync * settinguptrigger * reorder * storevent * standardisepollingvalidation * unittests * fixlint * fixlint * awscfg * generatesample * followthrough * tests * clena * store * externalidcleanup * clientid * local * baseunittests * putobjecttests * tests
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
package documenttext
|
||||
|
||||
const EnvName = "DOCUMENT_TEXT_URL"
|
||||
|
||||
type DocTextConfig struct {
|
||||
DocumentTextURL string `env:"DOCUMENT_TEXT_URL,required,notEmpty"`
|
||||
}
|
||||
|
||||
func (c *DocTextConfig) GetDocumentTextURL() string {
|
||||
return c.DocumentTextURL
|
||||
}
|
||||
|
||||
type ConfigProvider interface {
|
||||
GetDocumentTextURL() string
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
package documenttext_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"queryorchestration/internal/serviceconfig/queue/documenttext"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestGetDocumentTextURL(t *testing.T) {
|
||||
cfg := documenttext.DocTextConfig{}
|
||||
|
||||
name := cfg.GetDocumentTextURL()
|
||||
assert.Equal(t, "", name)
|
||||
|
||||
cfg.DocumentTextURL = "name"
|
||||
name = cfg.GetDocumentTextURL()
|
||||
assert.Equal(t, "name", name)
|
||||
assert.Equal(t, cfg.DocumentTextURL, name)
|
||||
}
|
||||
Reference in New Issue
Block a user