Skip to content

Commit 3b672c0

Browse files
committed
[BUGFIX] Fix stats count when dependency condition not met
1 parent 7c8cec7 commit 3b672c0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

graphqler/utils/stats.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from graphqler import config
1111
from graphqler.fuzzer.engine.types import Result
1212
from graphqler.graph import Node
13+
from graphqler.fuzzer.engine.types import ResultEnum
1314

1415
from .file_utils import initialize_file, intialize_file_if_not_exists, recreate_path, get_or_create_file
1516
from .singleton import singleton
@@ -302,6 +303,10 @@ def update_stats_from_result(self, node, result: Result) -> None:
302303
Args:
303304
result (Result): the result
304305
"""
306+
# Hard dependency not met means the node was never executed — skip all tracking
307+
if result.result_enum == ResultEnum.HARD_DEPENDENCY_NOT_MET:
308+
return
309+
305310
result_status = result.success
306311

307312
# Update success / fail stats first

0 commit comments

Comments
 (0)