YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026-2026 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#include <yarp/os/all.h>
7
9
10#include <catch2/catch_amalgamated.hpp>
11
12using namespace yarp::os;
13
14
15TEST_CASE("IdlThriftTest3", "[yarp::idl::thrift3]")
16{
18
19 SECTION("Test multiple containers")
20 {
21 std::vector<int> vec1;
22 std::set<int> set1;
23 std::map<int,std::string> map1;
24
26
27 // testing just the call, the implementation of the method is missing and
28 // it is not relevant for this test
29 bool ret;
30 ret = server.testList1(vec1);
31 CHECK(ret == false);
32 ret = server.testList2(vec1,vec1);
33 CHECK(ret == false);
34
35 ret = server.testMap1(map1);
36 CHECK(ret == false);
37 ret = server.testMap2(map1, map1);
38 CHECK(ret == false);
39
40 ret = server.testSet1(set1);
41 CHECK(ret == false);
42 ret = server.testSet2(set1, set1);
43 CHECK(ret == false);
44 }
45
47}
48
49int main(int argc, char* argv[])
50{
52 return Catch::Session().run(argc, argv);
53}
A mini-server for performing network communication in the background.
static bool setLocalMode(bool flag)
Chooses whether communication is process-local.
Definition Network.cpp:1118
Utilities for manipulating the YARP network, including initialization and shutdown.
Definition Network.h:718
int main(int argc, char *argv[])
Definition main.cpp:49
TEST_CASE("IdlThriftTest3", "[yarp::idl::thrift3]")
Definition main.cpp:15
An interface to the operating system, including Port based communication.
Definition OSTestMsg.cpp:13
The main, catch-all namespace for YARP.
Definition dirs.h:16