package documentsync_test import ( "queryorchestration/internal/serviceconfig/queue/documentsync" "testing" "github.com/stretchr/testify/assert" ) func TestGetDocumentSyncURL(t *testing.T) { cfg := documentsync.DocSyncConfig{} name := cfg.GetDocumentSyncURL() assert.Equal(t, "", name) cfg.DocumentSyncURL = "name" name = cfg.GetDocumentSyncURL() assert.Equal(t, "name", name) assert.Equal(t, cfg.DocumentSyncURL, name) }