Invastigate issues with complex_calculator
test
#45
Labels
blocked
Blocked by other issue
bug
Something isn't working
cairo-coverage
Should be done in cairo-coverage
Compiler
Should be done in cairo compiler
When executing coverage analysis on the
complex_calculator
project, two primary issues have been identified:Function Declaration Hitability:
Problem: Inconsistent marking of function declarations as hittable/non-hittable.
divide
,factorial
,power
,fibonacci
,is_prime
add
,subtract
,multiply
,unsafe_divide
Expected Behavior: Function declarations should consistently be marked as non-hittable, as they do not represent executable lines of code.
Suspicions: All not hittable declarations are one line functions
Result Assignment Coverage in
is_prime
:Problem: The declaration and assignment of the
result
variable in theis_prime
function are incorrectly marked as hittable, and worse, the assignment is marked as not hit despite it being executed.Expected Behavior: Result declaration and assignment should be non hittable
Suspicions:
result
variable is declared as mutThe text was updated successfully, but these errors were encountered: