Skip to content

Commit 34deee6

Browse files
committed
- Test coverage for UpstreamServer
1 parent 16e7f65 commit 34deee6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

internal/core/upstream_server_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2023 F5 Inc. All rights reserved.
3+
* Use of this source code is governed by the Apache License that can be found in the LICENSE file.
4+
*/
5+
6+
package core
7+
8+
import "testing"
9+
10+
func TestNewUpstreamServer(t *testing.T) {
11+
host := "localhost"
12+
us := NewUpstreamServer(host)
13+
if us.Host != host {
14+
t.Errorf("NewUpstreamServer(%s) = %s; want %s", host, us.Host, host)
15+
}
16+
}

0 commit comments

Comments
 (0)