void testImports (beast::Journal j) { testcase ("Imports"); TestLogic logic (j); Gossip g[5]; for (int i = 0; i < 5; ++i) createGossip (g[i]); for (int i = 0; i < 5; ++i) logic.importConsumers (std::to_string (i), g[i]); pass(); }
void testImports (beast::Journal j) { testcase ("Imports"); TestLogic logic (j); Gossip g[5]; for (int i = 0; i < 5; ++i) createGossip (g[i]); for (int i = 0; i < 5; ++i) logic.importConsumers (beast::String::fromNumber (i).toStdString(), g[i]); pass(); }
void testImport (beast::Journal j) { testcase ("Import"); TestLogic logic (j); Gossip g; Gossip::Item item; item.balance = 100; item.address = beast::IP::Endpoint ( beast::IP::AddressV4 (207, 127, 82, 1)); g.items.push_back (item); logic.importConsumers ("g", g); pass(); }