microsoft / mu_basecore

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

Create mocks for PlatformHookLib and PciLib #1094

Closed TsunFeng closed 2 months ago

TsunFeng commented 2 months ago

Description

Create mocks for PlatformHookLib and PciLib

How This Was Tested

Unit tests component can call PlatformHookLib and PciLib mock functions success

Integration Instructions

N/A

codecov-commenter commented 2 months ago

Codecov Report

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

Project coverage is 1.35%. Comparing base (d75e9f7) to head (f21a0e2).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/202311 #1094 +/- ## ================================================== + Coverage 1.27% 1.35% +0.08% ================================================== Files 1302 1303 +1 Lines 332836 333838 +1002 Branches 3738 5103 +1365 ================================================== + Hits 4229 4512 +283 - Misses 328474 329243 +769 + Partials 133 83 -50 ``` | [Flag](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1094/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/1094/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `0.68% <ø> (+0.06%)` | :arrow_up: | | [MdePkg](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1094/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `5.40% <ø> (ø)` | | | [NetworkPkg](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1094/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `0.55% <ø> (+0.19%)` | :arrow_up: | | [PolicyServicePkg](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1094/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.

TsunFeng commented 2 months ago

Hi @VivianNK, @apop5 and @os-d Could you help merge the PR to the base branch?

Thanks, TF