Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
z
+
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
x
y
+
Typedefs
a
b
c
d
f
h
i
n
o
p
q
r
s
t
u
+
Enumerations
a
c
d
e
f
i
m
n
p
q
r
s
t
u
+
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
w
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Related Functions
c
e
h
i
m
o
p
q
s
t
v
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
x
z
+
Variables
a
b
c
e
g
i
l
m
n
p
r
s
t
v
x
y
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
p
q
r
s
t
u
Enumerator
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
src
communication
test
communication_test.cpp
Go to the documentation of this file.
1
/*********************************************************************
2
*
3
* Software License Agreement
4
*
5
* Copyright (c) 2020,
6
* TU Dortmund - Institute of Control Theory and Systems Engineering.
7
* All rights reserved.
8
*
9
* This program is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program. If not, see <https://www.gnu.org/licenses/>.
21
*
22
* Authors: Christoph Rösmann
23
*********************************************************************/
24
25
#include <iostream>
26
27
#include "gtest/gtest.h"
28
29
// The fixture for testing class Foo.
30
class
FooTest
:
public
::testing::Test
31
{
32
protected
:
33
// You can do set-up work for each test here.
34
FooTest
() {}
35
// You can do clean-up work that doesn't throw exceptions here.
36
virtual
~FooTest
() {}
37
// If the constructor and destructor are not enough for setting up
38
// and cleaning up each test, you can define the following methods:
39
40
// Code here will be called immediately after the constructor (right
41
// before each test).
42
virtual
void
SetUp
() { std::cout <<
"nice"
<< std::endl; }
43
// Code here will be called immediately after each test (right
44
// before the destructor).
45
// virtual void TearDown();
46
47
// The mock bar library shaed by all tests
48
// int m_bar;
49
};
50
51
TEST_F
(
FooTest
, blabla)
52
{
53
int
testval = 5;
54
EXPECT_EQ(testval, 5);
55
}
56
57
int
main
(
int
argc,
char
** argv)
58
{
59
::testing::InitGoogleTest(&argc, argv);
60
int
ret
= RUN_ALL_TESTS();
61
62
return
ret
;
63
// return 1;
64
}
65
66
// int main()
67
//{
68
// std::cout << "Hello World!" << std::endl;
69
// return 0;
70
//}
main
int main(int argc, char **argv)
Definition:
communication_test.cpp:57
FooTest::~FooTest
virtual ~FooTest()
Definition:
communication_test.cpp:36
FooTest::FooTest
FooTest()
Definition:
communication_test.cpp:34
FooTest
Definition:
communication_test.cpp:30
FooTest::SetUp
virtual void SetUp()
Definition:
communication_test.cpp:42
TEST_F
TEST_F(FooTest, blabla)
Definition:
communication_test.cpp:51
ret
DenseIndex ret
Definition:
level1_impl.h:59
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Mon Feb 28 2022 22:06:46