blob: c5708267106ea6b21446159813f00786bfd29885 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#include <iostream>
#include <vector>
#include <gtest/gtest.h>
#include "../include/motor.hpp"
#include "../include/rocketUtils.hpp"
class MotorTest : public ::testing::Test {
protected:
MotorTest() {
m1 = new Motor();
}
//~IMUSensorTest() {}
Motor *m1;
};
/**
* @brief Test a
*
* **/
TEST_F(MotorTest, init) {
Vehicle rocket;
m1->init((void*)&rocket);
// ASSERT Statements.....
}
/**
* @brief Test a
*
* **/
TEST_F(MotorTest, writeData) {
Vehicle rocket;
m1->writeData((void*)&rocket);
// ASSERT Statements.....
}
// TODO: FIGURE OUT WHY MAKING 'rocket' a POINTER CAUSES A SEGFAULT
|