mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-18 23:01:23 +00:00
chore: remove unrelated test refactors
This commit is contained in:
1 parent
c3fc4331c1
commit
c91fbeb0c0
10 files changed
+54
-32
No files matched your search
@@ -3,8 +3,6 @@ package proxyurl
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestParse_空字符串直连(t *testing.T) {
|
||||
@@ -41,7 +39,9 @@ func TestParse_有效HTTP代理(t *testing.T) {
|
||||
if trimmed != "http://proxy.example.com:8080" {
|
||||
t.Errorf("trimmed 不匹配: got %q", trimmed)
|
||||
}
|
||||
require.NotNil(t, parsed)
|
||||
if parsed == nil {
|
||||
t.Fatal("parsed 不应为 nil")
|
||||
}
|
||||
if parsed.Host != "proxy.example.com:8080" {
|
||||
t.Errorf("Host 不匹配: got %q", parsed.Host)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user