(b *testing.B)
| 766 | } |
| 767 | |
| 768 | func BenchmarkExecuteBlocksDeepWithSandboxActive(b *testing.B) { |
| 769 | blockNames := []string{"body", "more_content"} |
| 770 | tpl, err := pongo2.FromFile("template_tests/block_render/deep.tpl") |
| 771 | if err != nil { |
| 772 | b.Fatal(err) |
| 773 | } |
| 774 | b.ResetTimer() |
| 775 | for i := 0; i < b.N; i++ { |
| 776 | _, err = tpl.ExecuteBlocks(tplContext, blockNames) |
| 777 | if err != nil { |
| 778 | b.Fatal(err) |
| 779 | } |
| 780 | } |
| 781 | } |
| 782 | |
| 783 | func BenchmarkExecuteBlocksWithEmptyBlocksSandboxActive(b *testing.B) { |
| 784 | blockNames := []string{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…