alice-lg/pkg/sources/openbgpd/config_test.go
2021-04-26 22:01:26 +02:00

17 lines
225 B
Go

package openbgpd
import (
"testing"
)
func TestConfigAPIURL(t *testing.T) {
cfg := &Config{
API: "http://a",
}
url := cfg.APIURL("/%d/bgpd", 42)
if url != "http://a/42/bgpd" {
t.Error("unexpected url:", url)
}
}