Skip to content

Commit

Permalink
- Test coverage for UpstreamServer
Browse files Browse the repository at this point in the history
  • Loading branch information
ciroque committed Oct 26, 2023
1 parent 16e7f65 commit 34deee6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions internal/core/upstream_server_test.go
Original file line number Diff line number Diff line change
@@ -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)
}
}

0 comments on commit 34deee6

Please sign in to comment.