FYI: Code coverage of nft test suites
Phil Sutter
reviewerHi,
I recalled there was an effort to increase code coverage of the nft test suites so I ran 'make check' in a '--coverage'-enabled build. Here's the result for HEAD at commit dda050bd78245 ("doc: clarify JSON rule positioning with handle field"):
http://nwl.cc/~n0-1/nft_testsuites_coverage/index.html
I plan to pick at least a few low hanging fruits from there, but anyone interested is more than welcome to chime in!
Cheers, Phil
Quoted 7 lines · Phil Sutter
Hi,
I recalled there was an effort to increase code coverage of the nft test suites so I ran 'make check' in a '--coverage'-enabled build. Here's the result for HEAD at commit
dda050bd78245("doc: clarify JSON rule positioning with handle field"):
Quoted 5 lines
http://nwl.cc/~n0-1/nft_testsuites_coverage/index.html
I plan to pick at least a few low hanging fruits from there, but anyone interested is more than welcome to chime in!
Thank you Phil! I would love to.
Quoted 2 lines
Cheers, Phil
Phil Sutter
reviewerHi Ferfer, ;)
Quoted 8 lines · Fernando Fernandez Mancera
Quoted 7 lines · Phil Sutter
Hi,
I recalled there was an effort to increase code coverage of the nft test suites so I ran 'make check' in a '--coverage'-enabled build. Here's the result for HEAD at commit
dda050bd78245("doc: clarify JSON rule positioning with handle field"):
Quoted 7 lines
Quoted 5 lines
http://nwl.cc/~n0-1/nft_testsuites_coverage/index.html
I plan to pick at least a few low hanging fruits from there, but anyone interested is more than welcome to chime in!
Thank you Phil! I would love to.
Cool! I have written a test for src/trace.c and am currently working on one for src/xt.c. So these two are already taken care of. Feel free to pick anything else worth improving.
Thanks, Phil