(b *testing.B)
| 2189 | } |
| 2190 | |
| 2191 | func BenchmarkAggregate(b *testing.B) { |
| 2192 | agg := newAggregate(aggregateAvg, NewStaticInt(3)) |
| 2193 | ss := make([]*Spanset, 1) |
| 2194 | ss[0] = &Spanset{ |
| 2195 | Spans: make([]Span, 1000), |
| 2196 | } |
| 2197 | |
| 2198 | b.ResetTimer() |
| 2199 | for i := 0; i < b.N; i++ { |
| 2200 | _, _ = agg.evaluate(ss) |
| 2201 | } |
| 2202 | } |
| 2203 | |
| 2204 | func TestNotParentWithEmptyLHS(t *testing.T) { |
| 2205 | // Build a single spanset with only RHS candidates matching name="list-articles" |
nothing calls this directly
no test coverage detected