Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
pkg/endpoint: Increase unit test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Delyan Raychev <delyan.raychev@microsoft.com>
  • Loading branch information
draychev committed Feb 19, 2021
1 parent 2c1926a commit bf04a84
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
17 changes: 17 additions & 0 deletions pkg/endpoint/endpoint_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package endpoint

import (
"net"
"testing"

tassert "github.com/stretchr/testify/assert"
)

func Test(t *testing.T) {
assert := tassert.New(t)
ept := Endpoint{
IP: net.ParseIP("9.9.9.9"),
Port: 1234,
}
assert.Equal(ept.String(), "(ip=9.9.9.9, port=1234)")
}
13 changes: 0 additions & 13 deletions pkg/endpoint/suite_test.go

This file was deleted.

0 comments on commit bf04a84

Please sign in to comment.