Skip to content

Commit

Permalink
Remove irrelevant error injection test for `celix_utils_convertString…
Browse files Browse the repository at this point in the history
…ToBool`.
  • Loading branch information
PengZheng committed Dec 8, 2023
1 parent 3038129 commit 0efc1a1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions libs/utils/gtest/src/ConvertUtilsErrorInjectionTestSuite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ class ConvertUtilsWithErrorInjectionTestSuite : public ::testing::Test {
}
};

TEST_F(ConvertUtilsWithErrorInjectionTestSuite, CovertToBoolTest) {
bool converted;
celix_ei_expect_celix_utils_writeOrCreateString(CELIX_EI_UNKNOWN_CALLER, 0, nullptr);
bool result = celix_utils_convertStringToBool("true", false, &converted);
EXPECT_EQ(false, result);
EXPECT_FALSE(converted);
}

TEST_F(ConvertUtilsWithErrorInjectionTestSuite, ConvertToVersionTest) {
celix_version_t* defaultVersion = celix_version_create(1, 2, 3, "B");
celix_ei_expect_celix_utils_writeOrCreateString(CELIX_EI_UNKNOWN_CALLER, 0, nullptr);
Expand Down

0 comments on commit 0efc1a1

Please sign in to comment.