diff --git a/internal/core/upstream_server_test.go b/internal/core/upstream_server_test.go new file mode 100644 index 0000000..7b0eed5 --- /dev/null +++ b/internal/core/upstream_server_test.go @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2023 F5 Inc. All rights reserved. + * Use of this source code is governed by the Apache License that can be found in the LICENSE file. + */ + +package core + +import "testing" + +func TestNewUpstreamServer(t *testing.T) { + host := "localhost" + us := NewUpstreamServer(host) + if us.Host != host { + t.Errorf("NewUpstreamServer(%s) = %s; want %s", host, us.Host, host) + } +}