!1564 接口覆盖率

Merge pull request !1564 from hemenghao/master
This commit is contained in:
openharmony_ci 2024-11-04 11:29:36 +00:00 committed by Gitee
commit 3260a633b8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 1 deletions

View File

@ -267,7 +267,7 @@ std::string EnableImeDataParser::ParseEnableValueUserId(const std::string &value
{
auto root = cJSON_Parse(valueStr.c_str());
auto subNode = Serializable::GetSubNode(root, "enableImeList");
if (subNode == nullptr || cJSON_IsObject(subNode)) {
if (subNode == nullptr || !cJSON_IsObject(subNode)) {
IMSA_HILOGW("subNode is null or not object");
return "";
}

View File

@ -371,6 +371,10 @@ HWTEST_F(InputMethodAbilityTest, testMoveCursor, TestSize.Level0)
auto ret = inputMethodAbility_->MoveCursor(keyCode); // move cursor right });
EXPECT_EQ(ret, ErrorCode::NO_ERROR);
EXPECT_TRUE(TextListener::WaitMoveCursor(keyCode));
ret = InputMethodAbilityInterface::GetInstance().MoveCursor(keyCode);
EXPECT_EQ(ret, ErrorCode::NO_ERROR);
EXPECT_TRUE(TextListener::WaitMoveCursor(keyCode));
}
/**