Skip to contentSkip to conversation

FYI: Code coverage of nft test suites

DISCUSSION Phil Sutter 2 participants 3 messages Jan 20 – Jan 22 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

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"):

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

#1 lore raw
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

author reviewer
#2 lore raw

Hi 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