@@ -1918,42 +1918,23 @@ TEST(FiltersEndToEnd, ColumnRange) {
19181918 filter.mutable_column_range_filter ()->set_start_qualifier_closed (" b00" );
19191919 filter.mutable_column_range_filter ()->set_end_qualifier_open (" b02" );
19201920
1921- struct Cell {
1922- std::string row_key;
1923- std::string column_family;
1924- std::string column_qualifier;
1925- std::int64_t timestamp_micros;
1926- std::string value;
1927-
1928- bool operator ==(Cell const & other) const {
1929- return this ->row_key == other.row_key &&
1930- this ->column_family == other.column_family &&
1931- this ->column_qualifier == other.column_qualifier &&
1932- this ->timestamp_micros == other.timestamp_micros &&
1933- this ->value == other.value ;
1934- }
1935- };
1936-
19371921 auto maybe_stream = table->CreateCellStream (all_rows_set, filter);
19381922 ASSERT_STATUS_OK (maybe_stream);
19391923
1940- std::vector<Cell > expected = {
1941- {row_key, " family1" , " b00" , 0 , " bar" },
1942- {row_key, " family1" , " b01" , 0 , " bar" },
1924+ std::vector<TestCell > expected = {
1925+ {row_key, " family1" , " b00" , 0_ms , " bar" },
1926+ {row_key, " family1" , " b01" , 0_ms , " bar" },
19431927 };
19441928
1945- std::vector<Cell > actual;
1929+ std::vector<TestCell > actual;
19461930 auto & stream = *maybe_stream;
19471931 for (; stream; ++stream) {
1948- actual.push_back ({ stream->row_key (), stream->column_family (),
1949- stream->column_qualifier (),
1950- stream-> timestamp (). count () * 1000 , stream->value ()} );
1932+ actual.emplace_back ( stream->row_key (), stream->column_family (),
1933+ stream->column_qualifier (), stream-> timestamp (),
1934+ stream->value ());
19511935 }
19521936
1953- ASSERT_EQ (expected.size (), actual.size ());
1954-
1955- ASSERT_TRUE (
1956- std::is_permutation (expected.begin (), expected.end (), actual.begin ()));
1937+ ASSERT_EQ (expected, actual);
19571938}
19581939
19591940} // namespace emulator
0 commit comments