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
8
#include <
TestMultipleContainers.h
>
9
10
#include <catch2/catch_amalgamated.hpp>
11
12
using namespace
yarp::os
;
13
14
15
TEST_CASE
(
"IdlThriftTest3"
,
"[yarp::idl::thrift3]"
)
16
{
17
yarp::os::Network::setLocalMode
(
true
);
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
25
TestMultipleContainers
server
;
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
46
yarp::os::Network::setLocalMode
(
false
);
47
}
48
49
int
main
(
int
argc,
char
* argv[])
50
{
51
Network
yarp
;
52
return
Catch::Session().
run
(argc, argv);
53
}
TestMultipleContainers.h
TestMultipleContainers
Definition
TestMultipleContainers.h:21
yarp::os::BufferedPort
A mini-server for performing network communication in the background.
Definition
BufferedPort.h:60
yarp::os::NetworkBase::setLocalMode
static bool setLocalMode(bool flag)
Chooses whether communication is process-local.
Definition
Network.cpp:1137
yarp::os::Network
Utilities for manipulating the YARP network, including initialization and shutdown.
Definition
Network.h:718
main
int main(int argc, char *argv[])
Definition
main.cpp:49
TEST_CASE
TEST_CASE("IdlThriftTest3", "[yarp::idl::thrift3]")
Definition
main.cpp:15
all.h
yarp::os
An interface to the operating system, including Port based communication.
Definition
LoadInfoData.cpp:13
yarp::run
Definition
PlatformStdlib.h:20
yarp
The main, catch-all namespace for YARP.
Definition
dirs.h:16
YARP
4.0.2+169-20261113.4+git2cc772dc6
src
commands
yarpidl_thrift
tests
test3
main.cpp
Generated on Sun Nov 15 2026 02:12:02 for YARP by
1.9.8