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 //}
int main(int argc, char **argv)
virtual ~FooTest()
virtual void SetUp()
TEST_F(FooTest, blabla)
DenseIndex ret
Definition: level1_impl.h:59


control_box_rst
Author(s): Christoph Rösmann
autogenerated on Mon Feb 28 2022 22:06:46