MCPcopy Create free account
hub / github.com/aria2/aria2 / createAddTorrentReq

Function createAddTorrentReq

test/RpcMethodTest.cc:329–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327#ifdef ENABLE_BITTORRENT
328namespace {
329RpcRequest createAddTorrentReq()
330{
331 auto req = createReq(AddTorrentRpcMethod::getMethodName());
332 req.params->append(readFile(A2_TEST_DIR "/single.torrent"));
333 auto uris = List::g();
334 uris->append("http://localhost/aria2-0.8.2.tar.bz2");
335 req.params->append(std::move(uris));
336 return req;
337}
338} // namespace
339
340void RpcMethodTest::testAddTorrent()

Callers 1

testAddTorrentMethod · 0.85

Calls 3

createReqFunction · 0.85
readFileFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected