(b *testing.B)
| 1497 | } |
| 1498 | |
| 1499 | func Benchmark_Domain_Match(b *testing.B) { |
| 1500 | m := parseDomainPattern(":tenant.api.example.com") |
| 1501 | b.ResetTimer() |
| 1502 | b.ReportAllocs() |
| 1503 | |
| 1504 | for b.Loop() { |
| 1505 | m.match("acme.api.example.com") |
| 1506 | } |
| 1507 | } |
| 1508 | |
| 1509 | func Benchmark_Domain_Route(b *testing.B) { |
| 1510 | app := New() |
nothing calls this directly
no test coverage detected