Closed weiihann closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 78.56%. Comparing base (
f20c3de
) to head (11d0421
). Report is 8 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
If we run the test in the following command:
We would get test errors as such:
But if we run the test with the following command, no errors are found:
The
cbor
encoder and decoder that we are using are initialized globally. In the case when are running tests, running all the tests in thecore
package would initialize the encoder/decoder correctly, but some struct types were registered properly if we only run thestate_test.go
.This PR attempts to fix the proper registering and deregistering types in the
state_test.go
file.