(t *testing.T)
| 524 | } |
| 525 | |
| 526 | func TestRule_MatchStar(t *testing.T) { |
| 527 | { |
| 528 | rule := NewRule() |
| 529 | rule.Operator = RuleOperatorMatch |
| 530 | rule.Value = `/\*(!|\x00)` |
| 531 | err := rule.Init() |
| 532 | if err != nil { |
| 533 | t.Fatal(err) |
| 534 | } |
| 535 | t.Log(rule.Test("/*!")) |
| 536 | t.Log(rule.Test(url.QueryEscape("/*!"))) |
| 537 | t.Log(url.QueryEscape("/*!")) |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | func TestRule_SetCheckpointFinder(t *testing.T) { |
| 542 | { |