blob: dfdc8939869ff3b9841bdd57d7441d6c850a2a3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package utils
import (
"testing"
)
func TestStripPort(t *testing.T) {
t.Parallel()
if "localhost" != StripPort("localhost:1234") {
t.Errorf("unable to split port from \"localhost:1234\"")
}
}
|