(b *testing.B)
| 47 | var testDoc = loadHTML(htmlSample) |
| 48 | |
| 49 | func BenchmarkSelectorCache(b *testing.B) { |
| 50 | DisableSelectorCache = false |
| 51 | for i := 0; i < b.N; i++ { |
| 52 | getQuery("/AAA/BBB/DDD/CCC/EEE/ancestor::*") |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func BenchmarkDisableSelectorCache(b *testing.B) { |
| 57 | DisableSelectorCache = true |
nothing calls this directly
no test coverage detected
searching dependent graphs…