Skip to content

Added several mock libraries for google test#1750

Merged
apop5 merged 3 commits intomicrosoft:release/202511from
PaddyDengAmi:user/paddydeng/AddMockLibraries
Apr 17, 2026
Merged

Added several mock libraries for google test#1750
apop5 merged 3 commits intomicrosoft:release/202511from
PaddyDengAmi:user/paddydeng/AddMockLibraries

Conversation

@PaddyDengAmi
Copy link
Copy Markdown
Contributor

Description

Added several mock libraries for google test

For details on how to complete these options and their meaning refer to CONTRIBUTING.md.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

Tested with pipelines.

Integration Instructions

N/A

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release/202511@d5a9eee). Learn more about missing BASE report.

Additional details and impacted files
@@                Coverage Diff                @@
##             release/202511    #1750   +/-   ##
=================================================
  Coverage                  ?    2.21%           
=================================================
  Files                     ?     1633           
  Lines                     ?   420176           
  Branches                  ?     4949           
=================================================
  Hits                      ?     9308           
  Misses                    ?   410793           
  Partials                  ?       75           
Flag Coverage Δ
FmpDevicePkg 9.53% <ø> (?)
MdeModulePkg 1.58% <ø> (?)
MdePkg 5.44% <ø> (?)
NetworkPkg 0.55% <ø> (?)
PolicyServicePkg 30.42% <ø> (?)
SecurityPkg 1.59% <ø> (?)
UefiCpuPkg 4.78% <ø> (?)
UnitTestFrameworkPkg 11.70% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PaddyDengAmi PaddyDengAmi force-pushed the user/paddydeng/AddMockLibraries branch from 310ea3c to 9efefa7 Compare April 7, 2026 06:42
@PaddyDengAmi PaddyDengAmi marked this pull request as ready for review April 7, 2026 08:01
Comment thread MdeModulePkg/Test/MdeModulePkgHostTest.dsc Outdated
@PaddyDengAmi PaddyDengAmi force-pushed the user/paddydeng/AddMockLibraries branch 2 times, most recently from 598f9eb to ca74ee2 Compare April 8, 2026 11:20
@mu-automation
Copy link
Copy Markdown
Contributor

mu-automation Bot commented Apr 9, 2026

⏩ QEMU Validation Skipped

The PR was merged before validation completed.

This comment was automatically generated by the Mu QEMU PR Validation workflow.

@PaddyDengAmi
Copy link
Copy Markdown
Contributor Author

Hi @apop5 ,

If no further request, could you please help to merge this PR?

@apop5
Copy link
Copy Markdown
Collaborator

apop5 commented Apr 16, 2026

@PaddyDengAmi

Since they are cherry-picks, can you rebase this PR onto the latest?

Added BaseCryptLib's mock library for google test so one can make google
test
drives consuming it

Signed-off-by: Paddy Deng <PaddyDeng@ami.com>
(cherry picked from commit e9f03fca2859a821af277356eeb757a3efd1f1f7)
Added several mock libraries for google test so one can make google test
drives consuming those libraries:

- MockTpmMeasurementLib
- MockFirmwareVolumeShadowPpi

Signed-off-by: Paddy Deng <PaddyDeng@ami.com>
(cherry picked from commit d68752de91db50259a65b49a9d3b2d98eec767c2)
Added several mock libraries for google test so one can make google test
drives consuming those libraries:

- MockReportStatusCodeLib
- MockSerialPortLib

Signed-off-by: Paddy Deng <PaddyDeng@ami.com>
(cherry picked from commit 4eb86f009d9392dbd18b594a30c3eceaf7d73c8e)
@PaddyDengAmi PaddyDengAmi force-pushed the user/paddydeng/AddMockLibraries branch from ca74ee2 to b91940d Compare April 17, 2026 03:19
@apop5 apop5 enabled auto-merge (rebase) April 17, 2026 03:41
@apop5 apop5 merged commit 3018f1b into microsoft:release/202511 Apr 17, 2026
96 checks passed
@PaddyDengAmi
Copy link
Copy Markdown
Contributor Author

Updated and merged, thank you Aaron for the kind help.

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.

5 participants