Skip to content

Commit

Permalink
test coverage added for LowerCaseString class (envoyproxy#28141)
Browse files Browse the repository at this point in the history
This PR seeks to improve this issue: envoyproxy#1963

Signed-off-by: Atul Thosar <atulthosar@gmail.com>
Signed-off-by: Ryan Eskin <ryan.eskin89@protonmail.com>
  • Loading branch information
simplyatul authored and reskin89 committed Jul 11, 2023
1 parent 499eda8 commit f6f9aaa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/common/http/header_map_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ TEST(HeaderStringTest, All) {
EXPECT_EQ("goodbye", hello_string.get());
}

// assignment operator with const rhs
{
LowerCaseString present_value("present_value");
const LowerCaseString new_value("new_value");
present_value = new_value;
EXPECT_EQ("new_value", present_value.get());
}

// Move constructor for normal UnionString.
{
UnionString to_move;
Expand Down

0 comments on commit f6f9aaa

Please sign in to comment.