Ejemplo n.º 1
0
    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();
    }
Ejemplo n.º 2
0
    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();
    }
Ejemplo n.º 3
0
    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();
    }