Skip to content
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

Make prepare_call unit testable #353

Merged
merged 29 commits into from
Feb 28, 2023
Merged

Make prepare_call unit testable #353

merged 29 commits into from
Feb 28, 2023

Conversation

freesig
Copy link
Contributor

@freesig freesig commented Feb 15, 2023

This PR introduces lots of utilities (especially around multiple mutable borrows of arrays, registers and memory) so that the scope of what is passed into a function is only related to that function and then can be unit tested.
Refs #350

@freesig freesig added testing fuel-vm Related to the `fuel-vm` crate. labels Feb 15, 2023
@freesig freesig self-assigned this Feb 15, 2023
Base automatically changed from freesig/avoid-code-clone-2 to master February 16, 2023 02:54
@@ -44,7 +44,7 @@ serde_json = "1.0"
test-case = "2.2"

[features]
default = ["optimized"]
default = []
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just flagging this as it's a significant change

@freesig freesig requested review from Voxelot and xgreenx February 28, 2023 02:05
Copy link
Collaborator

@xgreenx xgreenx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Waiting for approve from @Voxelot

@freesig freesig merged commit f8ed0cf into master Feb 28, 2023
@freesig freesig deleted the freesig/unit-test-call branch February 28, 2023 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fuel-vm Related to the `fuel-vm` crate. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants