Format all sources with Uncrustify
Formatted all sources and manually tuned some files to make the code look neater.
This commit is contained in:
@ -103,26 +103,26 @@ int MariaDBMonitor::Test::run_tests()
|
||||
|
||||
// Test 2: 4 servers, two cycles with a connection between them
|
||||
init_servers(4);
|
||||
EdgeArray edges2 = {{{1, 2}, {2, 1}, {3, 2}, {3, 4}, {4, 3}}};
|
||||
EdgeArray edges2 = { { {1, 2}, {2, 1}, {3, 2}, {3, 4}, {4, 3}}};
|
||||
add_replication(edges2);
|
||||
CycleArray expected_cycles2 = {{{{1, 2}}, {{3, 4}}}};
|
||||
CycleArray expected_cycles2 = { { { {1, 2}}, { {3, 4}}}};
|
||||
results.push_back(check_result_cycles(expected_cycles2));
|
||||
|
||||
// Test 3: 6 servers, with one cycle
|
||||
init_servers(6);
|
||||
EdgeArray edges3 = {{{2, 1}, {3, 2}, {4, 3}, {2, 4}, {5, 1}, {6, 5}, {6, 4}}};
|
||||
EdgeArray edges3 = { { {2, 1}, {3, 2}, {4, 3}, {2, 4}, {5, 1}, {6, 5}, {6, 4}}};
|
||||
add_replication(edges3);
|
||||
CycleArray expected_cycles3 = {{{{2, 3, 4}}}};
|
||||
CycleArray expected_cycles3 = { { { {2, 3, 4}}}};
|
||||
results.push_back(check_result_cycles(expected_cycles3));
|
||||
|
||||
// Test 4: 10 servers, with a big cycle composed of two smaller ones plus non-cycle servers
|
||||
init_servers(10);
|
||||
EdgeArray edges4
|
||||
= { {{1, 5}, {2, 1}, {2, 5}, {3, 1}, {3, 4}, {3, 10}, {4, 1}, {5, 6}, {6, 7}, {6, 4}, {7, 8},
|
||||
{8, 6},
|
||||
{9, 8}}};
|
||||
= { { {1, 5}, {2, 1}, {2, 5}, {3, 1}, {3, 4}, {3, 10}, {4, 1}, {5, 6}, {6, 7}, {6, 4}, {7, 8},
|
||||
{8, 6},
|
||||
{9, 8}}};
|
||||
add_replication(edges4);
|
||||
CycleArray expected_cycles4 = {{{{1, 5, 6, 7, 8, 4}}}};
|
||||
CycleArray expected_cycles4 = { { { {1, 5, 6, 7, 8, 4}}}};
|
||||
results.push_back(check_result_cycles(expected_cycles4));
|
||||
|
||||
clear_servers();
|
||||
|
Reference in New Issue
Block a user