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