新增接口未覆盖用例

Signed-off-by: junyi233 <zhengjun29@huawei.com>
This commit is contained in:
junyi233 2024-01-15 10:20:51 +08:00
parent 9e6ade1afb
commit 6bfadd309e

View File

@ -251,6 +251,8 @@ HWTEST_F(HapVerifyTest, HapVerify003, TestSize.Level0)
HapVerifyResult hapVerifyResult;
ASSERT_TRUE(ParseHapProfile(filePath, hapVerifyResult) == VERIFY_SUCCESS);
SignatureInfo hapSignInfo;
ASSERT_TRUE(ParseHapSignatureInfo(filePath, hapSignInfo) == VERIFY_SUCCESS);
ProvisionInfo profile = hapVerifyResult.GetProvisionInfo();
ASSERT_EQ(profile.type, ProvisionType::RELEASE);
ASSERT_EQ(profile.fingerprint, TEST_FINGERPRINT);