(b *testing.B)
| 27 | ) |
| 28 | |
| 29 | func BenchmarkMsgPipelineSimple(b *testing.B) { |
| 30 | target := testutils.Target{InstName: "test_target", DiscardMessages: true} |
| 31 | d := MsgPipeline{msgpipelineCfg: msgpipelineCfg{ |
| 32 | perSource: map[string]sourceBlock{}, |
| 33 | defaultSource: sourceBlock{ |
| 34 | perRcpt: map[string]*rcptBlock{}, |
| 35 | defaultRcpt: &rcptBlock{ |
| 36 | targets: []module.DeliveryTarget{&target}, |
| 37 | }, |
| 38 | }, |
| 39 | }} |
| 40 | |
| 41 | testutils.BenchDelivery(b, &d, "sender@example.org", []string{"rcpt-X@example.org"}) |
| 42 | } |
| 43 | |
| 44 | func BenchmarkMsgPipelineGlobalChecks(b *testing.B) { |
| 45 | testWithCount := func(checksCount int) { |
nothing calls this directly
no test coverage detected