src
observers
test
observers_test.cpp
Go to the documentation of this file.
1
/*********************************************************************
2
*
3
* Software License Agreement
4
*
5
* Copyright (c) 2018,
6
* TU Dortmund - Institute of Control Theory and Systems Engineering.
7
* All rights reserved.
8
*
9
* This software is currently not released.
10
* Redistribution and use in source and binary forms,
11
* with or without modification, are prohibited.
12
*
13
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
14
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
15
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
16
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
17
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
18
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
19
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
23
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24
* POSSIBILITY OF SUCH DAMAGE.
25
*
26
* Authors: Christoph Rösmann
27
*********************************************************************/
28
29
#include <iostream>
30
31
#include "gtest/gtest.h"
32
33
// The fixture for testing class Foo.
34
class
FooTest
:
public
::testing::Test
35
{
36
protected
:
37
// You can do set-up work for each test here.
38
FooTest
() {}
39
// You can do clean-up work that doesn't throw exceptions here.
40
virtual
~FooTest
() {}
41
// If the constructor and destructor are not enough for setting up
42
// and cleaning up each test, you can define the following methods:
43
44
// Code here will be called immediately after the constructor (right
45
// before each test).
46
virtual
void
SetUp
() { std::cout <<
"nice"
<< std::endl; }
47
// Code here will be called immediately after each test (right
48
// before the destructor).
49
// virtual void TearDown();
50
51
// The mock bar library shaed by all tests
52
// int m_bar;
53
};
54
55
TEST_F
(
FooTest
, blabla)
56
{
57
int
testval = 5;
58
EXPECT_EQ(testval, 5);
59
}
60
61
int
main
(
int
argc,
char
** argv)
62
{
63
::testing::InitGoogleTest(&argc, argv);
64
int
ret
= RUN_ALL_TESTS();
65
66
return
ret
;
67
// return 1;
68
}
69
70
// int main()
71
//{
72
// std::cout << "Hello World!" << std::endl;
73
// return 0;
74
//}
main
int main(int argc, char **argv)
Definition:
observers_test.cpp:61
FooTest::~FooTest
virtual ~FooTest()
Definition:
observers_test.cpp:40
FooTest::FooTest
FooTest()
Definition:
observers_test.cpp:38
FooTest
Definition:
communication_test.cpp:30
FooTest::SetUp
virtual void SetUp()
Definition:
observers_test.cpp:46
TEST_F
TEST_F(FooTest, blabla)
Definition:
observers_test.cpp:55
ret
DenseIndex ret
Definition:
level1_impl.h:59
control_box_rst
Author(s): Christoph Rösmann
autogenerated on Mon Feb 28 2022 22:07:06