fix proxy rules behavior and implemented a few more rules and commands, dependencies upgrade

This commit is contained in:
yusing
2025-01-11 12:22:42 +08:00
parent f2df756c17
commit 0ce7f29976
20 changed files with 991 additions and 443 deletions

View File

@@ -94,3 +94,13 @@ func TestParser(t *testing.T) {
}
})
}
func BenchmarkParser(b *testing.B) {
const input = `error 403 "Forbidden "foo" "bar""\ baz`
for range b.N {
_, _, err := parse(input)
if err != nil {
b.Fatal(err)
}
}
}