Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
psx95 committed Nov 5, 2024
1 parent a90c053 commit 1785610
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/test/trace/propagation/detail/string_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ struct SplitStringTestData
// See https://github.com/google/googletest/issues/3805.
friend void PrintTo(const SplitStringTestData &data, std::ostream *os)
{
std::stringstream ss;
*os << "(" << data.input << "," << data.separator << "," << data.max_count << ","
<< data.expected_number_strings << ")";
}
Expand All @@ -50,8 +49,7 @@ class SplitStringTestFixture : public ::testing::TestWithParam<SplitStringTestDa
TEST_P(SplitStringTestFixture, SplitsAsExpected)
{
const SplitStringTestData test_param = GetParam();
std::vector<opentelemetry::nostd::string_view> fields{};
fields.reserve(test_param.expected_number_strings);
std::vector<opentelemetry::nostd::string_view> fields(test_param.expected_number_strings);
size_t got_splits_num = opentelemetry::trace::propagation::detail::SplitString(
test_param.input, test_param.separator, fields.data(), test_param.max_count);

Expand Down

0 comments on commit 1785610

Please sign in to comment.