omgnetwork / optimism-v2

ARCHIVE of monorepo implementing Boba, an L2 Compute solution built on Optimistic Ethereum - active repo is at https://github.com/bobanetwork/boba
https://github.com/bobanetwork/boba
MIT License
40 stars 22 forks source link

Prototype Unit Tests: turing/sync_service_tests #436

Closed CAPtheorem closed 2 years ago

CAPtheorem commented 2 years ago

Starting to experiment with geth unit tests. Goal of this one is to test the flow of information, specifically the metadata, from the mock L1 into the verifier service. Test target: func (s *SyncService) applyTransactionToTip(tx *types.Transaction). ToDo - unit tests that directly check the evm.Call with and without Turing payloads in the evm.context.

Test can be run with debug output like this: go test -v -run TestSyncServiceTuringVerify ./...

codecov-commenter commented 2 years ago

Codecov Report

Merging #436 (83da75f) into develop (430f09f) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #436   +/-   ##
========================================
  Coverage    72.41%   72.41%           
========================================
  Files           59       59           
  Lines         1820     1820           
  Branches       279      279           
========================================
  Hits          1318     1318           
  Misses         502      502           
Flag Coverage Δ
contracts 87.18% <ø> (ø)
core-utils 53.79% <ø> (ø)
data-transport-layer 29.47% <ø> (ø)
message-relayer 83.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 430f09f...83da75f. Read the comment docs.

CAPtheorem commented 2 years ago

work on this will continue at /bobanetwork