lambdaclass / cairo-vm_in_go

cairo-vm_in_go is a Go implementation of the Cairo VM. Cairo (CPU Algebraic Intermediate Representation) is a programming language for writing provable programs, where one party can prove to another that a certain computation was executed correctly without the need for this party to re-execute the same program.
Apache License 2.0
57 stars 13 forks source link

Add testing util `CheckScopeVar` #308

Closed fmoletta closed 1 year ago

fmoletta commented 1 year ago

A single generic function to check that the execution scopes contains a certain value and its is equal to an expected value. Made to reduce boilerplate code in hint unit tests

codecov-commenter commented 1 year ago

Codecov Report

Merging #308 (f0d2396) into main (1697359) will decrease coverage by 0.37%. Report is 3 commits behind head on main. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #308      +/-   ##
==========================================
- Coverage   56.40%   56.04%   -0.37%     
==========================================
  Files          47       48       +1     
  Lines        5992     6247     +255     
==========================================
+ Hits         3380     3501     +121     
- Misses       2286     2398     +112     
- Partials      326      348      +22     
Files Coverage Δ
pkg/hints/hint_utils/testing_utils.go 79.48% <0.00%> (-20.52%) :arrow_down:

... and 4 files with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more