(b *testing.B)
| 182 | } |
| 183 | |
| 184 | func BenchmarkInterpretSingleFieldStruct(b *testing.B) { |
| 185 | intr := newInterpreter() |
| 186 | parser := NewParser() |
| 187 | ast, _ := parser.Parse("fooasdfasdfasdfasdf") |
| 188 | data := benchmarkStruct{"foobarbazqux"} |
| 189 | for i := 0; i < b.N; i++ { |
| 190 | intr.Execute(ast, &data) |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | func BenchmarkInterpretNestedStruct(b *testing.B) { |
| 195 | intr := newInterpreter() |
nothing calls this directly
no test coverage detected
searching dependent graphs…