Files
tun2socks/proxy/url_test.go
xjasonlyu a9f56af25f refactor proxy/internal
update proxies

refactor

fix sth

up
2024-08-28 19:01:18 -04:00

32 lines
449 B
Go

package proxy
import (
"testing"
"github.com/stretchr/testify/suite"
)
type URLTestSuite struct {
suite.Suite
}
func (s *URLTestSuite) TestAddress() {
tests := []struct {
u *URL
expected string
}{
{
MustParseURL("http://example.com/"),
"http://example.com",
},
}
for _, tt := range tests {
s.Assert().Equal(tt.expected, tt.u.String())
}
}
func TestURLTestSuite(t *testing.T) {
suite.Run(t, new(URLTestSuite))
}