program-test: API to get individual program info and ELF
There is a subsequent change where we need to get accounts for a specific program, along with the ELF bytes.
Plus, for upgradable programs, extracting ELF from the account data is not completely trivial. So if the caller needs it, it is convenient to be able to retrieve it directly.
Codecov Report
Attention: Patch coverage is 84.84848% with 10 lines in your changes are missing coverage. Please review.
Project coverage is 81.6%. Comparing base (
31a73ab) to head (a65878c). Report is 14 commits behind head on master.
:exclamation: Current head a65878c differs from pull request most recent head 6869985. Consider uploading reports for the commit 6869985 to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## master #35221 +/- ##
=========================================
- Coverage 81.7% 81.6% -0.2%
=========================================
Files 834 834
Lines 224197 224868 +671
=========================================
+ Hits 183287 183530 +243
- Misses 40910 41338 +428
@CriesofCarrots @buffalojoec I am working on a subsequent change that might be more aligned with what you both were talking about here. I want to add more programs to the library, not just those in SPL. And I want to get ELF without the associated accounts. But it still seems reasonable to share some of the functionality. Here is a draft, based on this PR: https://github.com/solana-labs/solana/pull/35314 Maybe considering the direction, you would be more happy with the changes in this PR :)
This repository is no longer in use. Please re-open this pull request in the agave repo: https://github.com/anza-xyz/agave