software:firmware
MakAir Firmware
|
Unit tests for pressure.cpp. More...
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <iostream>
#include <vector>
#include "../includes/pressure_utl.h"
Go to the source code of this file.
Classes | |
class | PressionTest |
Test Fixture to test the pression file. More... | |
Macros | |
#define | KPA_MMH2O 101.97162129779 |
#define | RATIO_VOLTAGE_DIVIDER 0.8192 |
#define | V_SUPPLY 5.08 |
#define | NEAR_EQUAL_DIFF 2 |
Functions | |
int16_t | convertSensor2PressureFloat (uint16_t sensorValue) |
Old converting function using floats. More... | |
TEST_F (PressionTest, testConvertSensor2PressureCompWithFloat) | |
Test convertSensor2Pressure with comparison with old floating point function. More... | |
TEST_F (PressionTest, testConvertSensor2Pressure) | |
Test convertSensor2Pressure with arbitrary values. More... | |
Unit tests for pressure.cpp.
Definition in file test_pressure.cpp.
#define KPA_MMH2O 101.97162129779 |
Definition at line 16 of file test_pressure.cpp.
#define NEAR_EQUAL_DIFF 2 |
Definition at line 52 of file test_pressure.cpp.
#define RATIO_VOLTAGE_DIVIDER 0.8192 |
Definition at line 17 of file test_pressure.cpp.
#define V_SUPPLY 5.08 |
Definition at line 18 of file test_pressure.cpp.
int16_t convertSensor2PressureFloat | ( | uint16_t | sensorValue | ) |
TEST_F | ( | PressionTest | , |
testConvertSensor2Pressure | |||
) |
Test convertSensor2Pressure with arbitrary values.
Definition at line 77 of file test_pressure.cpp.
TEST_F | ( | PressionTest | , |
testConvertSensor2PressureCompWithFloat | |||
) |
Test convertSensor2Pressure with comparison with old floating point function.
Definition at line 57 of file test_pressure.cpp.