Add a custom vm.Run() function #9

Merged
fyrchik merged 5 commits from elebedeva/contract-coverage-primer:covertest/run into master 2024-09-04 19:51:22 +00:00

5 commits

Author SHA1 Message Date
401d54dda4 [#2] Fix comments
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2023-08-08 13:43:40 +03:00
9e3ac59aa8 [#2] Fix test
Use `require` to check for errors and instead of just printing result to Stdout,
t.Log to print errors.
Added functions to calculate start offset, check if contract
method has result and to get random int to put.

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2023-08-08 13:41:36 +03:00
6bdec59abf [#2] Fix bad field naming in InstrHash structure
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2023-08-04 16:39:34 +03:00
e4dff3d6a1 [#2] Add a test for covertest.Run()
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2023-08-04 12:41:06 +03:00
f9c1fb952c [#2] Add a custom vm.Run() function
It executes loaded program and accumulates all seen opcodes
together with the scripthash they belong to.

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2023-08-04 12:33:10 +03:00