LinqLover / SimulationStudio

A growing suite of applications and tools using code simulation in Squeak/Smalltalk
9 stars 1 forks source link

Add CoverageSimulator #46

Closed LinqLover closed 2 years ago

LinqLover commented 2 years ago

I record a bytecode-precise coverage map for all methods that I reach during execution. Find an invocation example and some to-do notes on my class side.

Usage example:

(CoverageSimulator new
    evaluate:
        [2 / 3.
        "[2 / 0] on: Error do: [:ex | ex resume: nil]."
        2 / 3.5];
    coveredSymbolicOf: Integer >> #/) edit.

CoverageSimulator