Skip to content

Commit

Permalink
test: helper testcase (#791)
Browse files Browse the repository at this point in the history
- testcase added for helper module for code coverage

Signed-off-by: Guru Mehar Rachaputi <gurumeharrachaputi@gmail.com>
  • Loading branch information
00thirdeye00 committed Jul 5, 2024
1 parent 968e53d commit e4f7f68
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/modules/helper/HelperTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <unordered_map>
#include <vector>

#include "gmock/gmock.h"
#include "gtest/gtest.h"

using namespace ::testing;
Expand Down Expand Up @@ -131,6 +132,15 @@ TEST_F(HelperTest, RegexpStyleStringParse)
ASSERT_EQ(result.size(), 11);
}

TEST_F(HelperTest, RegexpStyleStringParseMaxMin)
{
std::string input = "#{6,5}[4-2]test[1-3]";

const auto result = regexpStyleStringParse(input);

ASSERT_THAT(result.size(), AllOf(Ge(11),Le(12)));
}

TEST_F(HelperTest, ReplaceCreditCardSymbols)
{
const auto result_default = replaceCreditCardSymbols();
Expand Down

0 comments on commit e4f7f68

Please sign in to comment.