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

LoadedPrograms::extract() code cleanup and unit tests #31604

Merged
merged 1 commit into from
May 12, 2023

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented May 11, 2023

Problem

The code in extract() API can use some cleanup and more unit tests.

Summary of Changes

Moved some of the conditions and checks in a separate function. Added unit tests specific to the new function.

Fixes #

@pgarg66 pgarg66 marked this pull request as ready for review May 11, 2023 18:12
@pgarg66 pgarg66 requested a review from Lichtso May 11, 2023 18:12
@codecov
Copy link

codecov bot commented May 11, 2023

Codecov Report

Merging #31604 (833c7e1) into master (76d1c38) will increase coverage by 0.0%.
The diff coverage is 95.3%.

@@           Coverage Diff           @@
##           master   #31604   +/-   ##
=======================================
  Coverage    81.3%    81.3%           
=======================================
  Files         733      733           
  Lines      206474   206508   +34     
=======================================
+ Hits       167864   167912   +48     
+ Misses      38610    38596   -14     

@pgarg66 pgarg66 merged commit a649459 into solana-labs:master May 12, 2023
@pgarg66 pgarg66 deleted the clean-and-test branch May 12, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants