mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
29 lines
518 B
Text
29 lines
518 B
Text
# @TEST-EXEC: BRO_PROFILER_FILE=coverage bro -b %INPUT
|
|
# @TEST-EXEC: grep %INPUT coverage | sort -k2 >output
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
|
|
|
print "first";
|
|
|
|
if ( F )
|
|
{ # @no-test
|
|
print "hello";
|
|
print "world";
|
|
}
|
|
|
|
print "cover me";
|
|
|
|
if ( T )
|
|
{
|
|
print "always executed";
|
|
}
|
|
|
|
print "don't cover me"; # @no-test
|
|
|
|
if ( 0 + 0 == 1 ) print "impossible"; # @no-test
|
|
|
|
if ( 1 == 0 )
|
|
{
|
|
print "also impossible, but included in code coverage analysis";
|
|
}
|
|
|
|
print "success";
|