Skip to content

Cost Tracking Testing #636

@ureeves

Description

@ureeves

Once the cost tracking implementation is complete, we should add some tests for it to ensure parity with the interpreter.

Our existing test infrastructure should make adding a comparison between the interpreter and the WebAssembly runtime's accounting of costs not too difficult. By modifying TestEnvironment::init_contract_with_snippet to use both the interpreter's and the runtime's cost tracking, all the tests that rely on crosschecking the results of executing a contract will now also check the cost tracking code.

pub fn init_contract_with_snippet(
&mut self,
contract_name: &str,
snippet: &str,
) -> Result<Option<Value>, Error> {

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions