microsoft / mu_basecore

Project Mu BaseCore
https://microsoft.github.io/mu/
Other
242 stars 124 forks source link

Add mock functions under MockUefiLib and Create Mock for CapsuleLib, PerformanceLib, MockUefiBootManagerLib and GenericMemoryTestProtocol #1111

Closed YiTa-AMI closed 1 month ago

YiTa-AMI commented 1 month ago

Description

Add mock functions under MockUefiLib and Create Mock for CapsuleLib, PerformanceLib and GenericMemoryTestProtocol

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

How This Was Tested

Unit tests component can call these mock functions success

Integration Instructions

N/A

YiTa-AMI commented 1 month ago

Hi @VivianNK , @apop5 and @os-d Would you kindly help review this change? Thanks, YiTa

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 1.35%. Comparing base (a6e05a7) to head (d47efd4).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/202311 #1111 +/- ## ================================================== + Coverage 1.06% 1.35% +0.28% ================================================== Files 1303 1303 Lines 332238 333838 +1600 Branches 5103 5103 ================================================== + Hits 3547 4512 +965 - Misses 328204 329243 +1039 + Partials 487 83 -404 ``` | [Flag](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1111/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | Coverage Δ | | |---|---|---| | [MdeModulePkg](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1111/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `0.68% <ø> (ø)` | | | [MdePkg](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1111/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `5.40% <ø> (+2.12%)` | :arrow_up: | | [NetworkPkg](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1111/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `0.55% <ø> (ø)` | | | [PolicyServicePkg](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1111/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `30.41% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.