[Cherry-Pick] MdePkg: Add PeCoffLib and RngLib GoogleTest mocks - #1918
Merged
Aaron (apop5) merged 2 commits intoSep 16, 2026
Conversation
Contributor
❌ QEMU Validation FailedSource Dependencies
Results
Workflow run: https://github.com/microsoft/mu_basecore/actions/runs/34951793534 This comment was automatically generated by the Mu QEMU PR Validation workflow. |
Marc Chen (MarcChen46)
changed the base branch from
release/202511
to
release/202608
September 15, 2026 08:57
Marc Chen (MarcChen46)
force-pushed
the
user/marcchen/cherry-pick-pecoff-rng-mocks
branch
from
September 15, 2026 08:57
53b502b to
a6cb23f
Compare
Add a reusable GoogleTest mock implementation covering all public PeCoffLib APIs. Include it in MdePkgHostTest.dsc so CI validates the mock with host-based unit tests. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Signed-off-by: Marc Chen <marc.chen@microsoft.com> (cherry picked from commit 5d5d58949bb88125cd1ffac3419913f4ea156263)
Add a reusable GoogleTest mock implementation covering all public RngLib APIs. Include it in MdePkgHostTest.dsc so CI validates the mock with host-based unit tests. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Signed-off-by: Marc Chen <marc.chen@microsoft.com> (cherry picked from commit ce16b76336e67b2268f6c3e46835005b60a403aa)
Marc Chen (MarcChen46)
force-pushed
the
user/marcchen/cherry-pick-pecoff-rng-mocks
branch
from
September 15, 2026 09:10
a6cb23f to
f10dbea
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/202608 #1918 +/- ##
=================================================
Coverage ? 1.70%
=================================================
Files ? 1674
Lines ? 417227
Branches ? 0
=================================================
Hits ? 7121
Misses ? 410106
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Aaron (apop5)
approved these changes
Sep 16, 2026
Aaron (apop5)
enabled auto-merge (rebase)
September 16, 2026 16:54
kuqin12
approved these changes
Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Cherry-pick tianocore/edk2#12960 onto
release/202608.Add reusable GoogleTest mock implementations covering the public
PeCoffLibandRngLibAPIs, and register both mock libraries inMdePkgHostTest.dsc.Source commits from the edk2 default branch (
master):5d5d58949bb88125cd1ffac3419913f4ea156263— MdePkg: Add GoogleTest mock for PeCoffLibce16b76336e67b2268f6c3e46835005b60a403aa— MdePkg: Add GoogleTest mock for RngLibFor details on how to complete these options and their meaning refer to CONTRIBUTING.md.
How This Was Tested
git diff --checkpassed. The MdePkg CI command was attempted:stuart_ci_build -c .pytool\\CISettings.py -p MdePkg -t NO-TARGETIt could not start because the environment is missing required external dependencies, including
Mu-Basetools, NASM, ACPI tools, and related packages.Integration Instructions
N/A