| 12345678910111213141516 |
- package tinymq
- import "testing"
- func TestParseUrl(t *testing.T) {
- url := "ws2://xor:s^7mv7L!Mrn8Y!vn@127.0.0.1:141/wsv2?proxy=1&priority=90"
- hostInfo, err := ParseUrl(url)
- if err != nil {
- t.Error(err)
- return
- }
- result := hostInfo.Url()
- if result != url {
- t.Errorf("want: %s, get: %s", url, result)
- }
- }
|