mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
fix for coverage reporting for functions that use "when" statements
This commit is contained in:
parent
fab4905fc2
commit
5d38971030
1 changed files with 4 additions and 1 deletions
|
@ -2072,7 +2072,7 @@ void WhenStmt::StmtDescribe(ODesc* d) const
|
||||||
wi->WhenBody()->Describe(d);
|
wi->WhenBody()->Describe(d);
|
||||||
d->PopIndent();
|
d->PopIndent();
|
||||||
|
|
||||||
if ( wi->TimeoutStmt() )
|
if ( wi->TimeoutExpr() )
|
||||||
{
|
{
|
||||||
if ( d->IsReadable() )
|
if ( d->IsReadable() )
|
||||||
{
|
{
|
||||||
|
@ -2087,9 +2087,12 @@ void WhenStmt::StmtDescribe(ODesc* d) const
|
||||||
d->PopIndent();
|
d->PopIndent();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
wi->TimeoutExpr()->Describe(d);
|
||||||
wi->TimeoutStmt()->Describe(d);
|
wi->TimeoutStmt()->Describe(d);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TraversalCode WhenStmt::Traverse(TraversalCallback* cb) const
|
TraversalCode WhenStmt::Traverse(TraversalCallback* cb) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue