chore: remove unrelated test refactors

This commit is contained in:
wucm667 committed 2026-08-11 16:57:39 +08:00
1 parent c3fc4331c1
commit c91fbeb0c0
10 files changed
+54 -32

No files matched your search

+3 -3
View File
@@ -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)
}