filecoin-project / fvm-workbench

Tooling for developing actors on the FVM
Other
6 stars 0 forks source link

Extend mock functionality of the BenchKernel #9

Open alexytsu opened 1 year ago

alexytsu commented 1 year ago

Currently behaviour that is infeasible to be replicated in benchmark tests is intercepted and hardcoded values for success are returned.

We should be able to dynamically mock behaviour for key methods by dynamically adjusting the BenchKernel's behaviour as a test runs.

alexytsu commented 1 year ago

Note that this is somewhat complicated by the fact that we don't generally have access to any particular instance of a Kernel. They are created on-the-fly by a CallManager and used internally-only.