diff --git a/config/web_test.go b/config/web_test.go new file mode 100644 index 00000000..b5e6fe86 --- /dev/null +++ b/config/web_test.go @@ -0,0 +1,13 @@ +package config + +import "testing" + +func TestWebConfig_SocketAddress(t *testing.T) { + web := &webConfig{ + Address: "0.0.0.0", + Port: 8081, + } + if web.SocketAddress() != "0.0.0.0:8081" { + t.Errorf("expected %s, got %s", "0.0.0.0:8081", web.SocketAddress()) + } +}