Fix formating
This commit is contained in:
committed by
Patrick Niklaus
parent
9fc2c32408
commit
81a4747acb
@@ -42,9 +42,7 @@ BOOST_AUTO_TEST_CASE(read_write_hsgr)
|
||||
unsigned checksum;
|
||||
unsigned connectivity_checksum;
|
||||
|
||||
std::unordered_map<std::string, ContractedMetric> metrics = {
|
||||
{"duration", {}}
|
||||
};
|
||||
std::unordered_map<std::string, ContractedMetric> metrics = {{"duration", {}}};
|
||||
contractor::files::readGraph(tmp.path, checksum, metrics, connectivity_checksum);
|
||||
|
||||
BOOST_CHECK_EQUAL(checksum, reference_checksum);
|
||||
|
||||
@@ -93,10 +93,16 @@ BOOST_AUTO_TEST_CASE(layout_list_test)
|
||||
layout.List("/mld/metrics/", std::back_inserter(results_5));
|
||||
layout.List("/mld/", std::back_inserter(results_6));
|
||||
|
||||
CHECK_EQUAL_RANGE(results_1, "/ch/edge_filter/block1", "/ch/edge_filter/block2", "/ch/edge_filter/block3");
|
||||
CHECK_EQUAL_RANGE(results_2, "/ch/edge_filter/block1", "/ch/edge_filter/block2", "/ch/edge_filter/block3");
|
||||
CHECK_EQUAL_RANGE(
|
||||
results_1, "/ch/edge_filter/block1", "/ch/edge_filter/block2", "/ch/edge_filter/block3");
|
||||
CHECK_EQUAL_RANGE(
|
||||
results_2, "/ch/edge_filter/block1", "/ch/edge_filter/block2", "/ch/edge_filter/block3");
|
||||
CHECK_EQUAL_RANGE(results_3, "/ch/edge_filter");
|
||||
CHECK_EQUAL_RANGE(results_4, "/mld/metrics/0/durations", "/mld/metrics/0/weights", "/mld/metrics/1/durations", "/mld/metrics/1/weights");
|
||||
CHECK_EQUAL_RANGE(results_4,
|
||||
"/mld/metrics/0/durations",
|
||||
"/mld/metrics/0/weights",
|
||||
"/mld/metrics/1/durations",
|
||||
"/mld/metrics/1/weights");
|
||||
CHECK_EQUAL_RANGE(results_5, "/mld/metrics/0", "/mld/metrics/1");
|
||||
CHECK_EQUAL_RANGE(results_6, "/mld/metrics");
|
||||
}
|
||||
|
||||
@@ -118,18 +118,14 @@ BOOST_AUTO_TEST_CASE(tar_serialize_deallocting_vector)
|
||||
BOOST_AUTO_TEST_CASE(buffer_serialize_map)
|
||||
{
|
||||
std::map<std::string, std::int32_t> map = {
|
||||
{"foo", 1},
|
||||
{"barrrr", 2},
|
||||
{"bal", 3},
|
||||
{"bazbar", 4},
|
||||
{"foofofofo", 5},
|
||||
{"foo", 1}, {"barrrr", 2}, {"bal", 3}, {"bazbar", 4}, {"foofofofo", 5},
|
||||
};
|
||||
|
||||
std::string buffer;
|
||||
{
|
||||
io::BufferWriter writer;
|
||||
storage::serialization::write(writer, map);
|
||||
buffer = writer.GetBuffer();
|
||||
io::BufferWriter writer;
|
||||
storage::serialization::write(writer, map);
|
||||
buffer = writer.GetBuffer();
|
||||
}
|
||||
|
||||
std::map<std::string, std::int32_t> result;
|
||||
|
||||
Reference in New Issue
Block a user