From 34deee619a037f31b9e30938b63194a81fbaf157 Mon Sep 17 00:00:00 2001 From: Steve Wagner Date: Thu, 26 Oct 2023 11:44:56 -0700 Subject: [PATCH] - Test coverage for UpstreamServer --- internal/core/upstream_server_test.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 internal/core/upstream_server_test.go 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) + } +}