(b *testing.B)
| 50 | } |
| 51 | |
| 52 | func BenchmarkIsSelection(b *testing.B) { |
| 53 | var y bool |
| 54 | |
| 55 | b.StopTimer() |
| 56 | sel := DocW().Find("li") |
| 57 | sel2 := DocW().Find(".toclevel-2") |
| 58 | b.StartTimer() |
| 59 | for i := 0; i < b.N; i++ { |
| 60 | y = sel.IsSelection(sel2) |
| 61 | } |
| 62 | if !y { |
| 63 | b.Fatal("want true") |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | func BenchmarkIsNodes(b *testing.B) { |
| 68 | var y bool |
nothing calls this directly
no test coverage detected
searching dependent graphs…