-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor runtime test helpers into separate, reusable package #2800
Refactor runtime test helpers into separate, reusable package #2800
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/stable-cadence commit e857884 Collapsed results for better readability
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature/stable-cadence #2800 +/- ##
==========================================================
- Coverage 79.78% 79.77% -0.01%
==========================================================
Files 342 342
Lines 80778 80778
==========================================================
- Hits 64445 64443 -2
- Misses 14024 14026 +2
Partials 2309 2309
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Description
As discussed on Discord, move the runtime test helpers
testRuntimeInterface
andtestInterpreterRuntime
to a separate package,runtime/tests/runtime_utils
, so they can be used outside of theruntime
package.This requires exporting (renaming) the types, as well as the fields.
In addition, this also requires moving all runtime tests (tests in
runtime/*_test.go
) to a separate package (runtime_test
), to avoid an import cycle.This allows e.g. the migration code to live in a separate package, and use the runtime testing infrastructure we already have available.
master
branchFiles changed
in the Github PR explorer