Ah, that sounds like a better approach! Thanks Jan Jon
On Wed, Mar 13, 2019 at 3:22 PM Jon Siwek <[email protected]> wrote: > On Wed, Mar 13, 2019 at 11:48 AM Jan Grashöfer <[email protected]> > wrote: > > > > On 12/03/2019 17:15, [email protected] wrote: > > > I am working on improving the btests for the kafka writer plugin with > the > > > goal of validating some logic in KafkaWriter::DoInit. The best approach > > > that I have so far is to write a BiF and use it in both DoInit and the > > > btest via Zeek policy, but I have only been able to find limited > > > documentation[1][2] on the topic. > > > If you just need to wrap some internal logic you could extract it into > > a normal C++ function and use a BiF to call that function out of a > > Bro-Script. > > Re-reading the problem statement, I agree that does seem like all that > may be needed -- factor out a common C++ function that get's called > from inside both the BIF and the DoInit() function. > > - Jon > > _______________________________________________ > zeek-dev mailing list > [email protected] > http://mailman.icsi.berkeley.edu/mailman/listinfo/zeek-dev > -- Jon Zeolla
_______________________________________________ zeek-dev mailing list [email protected] http://mailman.icsi.berkeley.edu/mailman/listinfo/zeek-dev
