(b *testing.B)
| 54 | } |
| 55 | |
| 56 | func BenchmarkDisableSelectorCache(b *testing.B) { |
| 57 | DisableSelectorCache = true |
| 58 | for i := 0; i < b.N; i++ { |
| 59 | getQuery("/AAA/BBB/DDD/CCC/EEE/ancestor::*") |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | func TestSelectorCache(t *testing.T) { |
| 64 | SelectorCacheMaxEntries = 2 |
nothing calls this directly
no test coverage detected
searching dependent graphs…