21 lines
412 B
Go
21 lines
412 B
Go
|
|
package documentinit_test
|
||
|
|
|
||
|
|
import (
|
||
|
|
"queryorchestration/internal/serviceconfig/queue/documentinit"
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
"github.com/stretchr/testify/assert"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestGetDocInitURL(t *testing.T) {
|
||
|
|
cfg := documentinit.DocInitConfig{}
|
||
|
|
|
||
|
|
name := cfg.GetDocInitURL()
|
||
|
|
assert.Equal(t, "", name)
|
||
|
|
|
||
|
|
cfg.DocInitURL = "name"
|
||
|
|
name = cfg.GetDocInitURL()
|
||
|
|
assert.Equal(t, "name", name)
|
||
|
|
assert.Equal(t, cfg.DocInitURL, name)
|
||
|
|
}
|