theCore C++ embedded framework
|
#include <dev/sensor/fc28.hpp>
#include <CppUTest/TestHarness.h>
#include <CppUTest/CommandLineTestRunner.h>
#include <CppUTestExt/MockSupport.h>
#include <iostream>
Data Structures | |
struct | mock_power_pin |
Typedefs | |
using | test_fc28 = ecl::sensor::fc28< mock_power_pin > |
Functions | |
TEST_GROUP (fc28) | |
template<typename Et , typename Dt , typename St , typename Rt > | |
static void | test_get_sample_with_delta (Et expected, Dt delta, St sample, Rt resolution) |
TEST (fc28, power_up_down) | |
TEST (fc28, get_moisture_min_max) | |
TEST (fc28, get_moisture_in_between_10bits) | |
int | main (int argc, char *argv[]) |
using test_fc28 = ecl::sensor::fc28<mock_power_pin> |
TEST_GROUP | ( | fc28 | ) |
|
static |
TEST | ( | fc28 | , |
power_up_down | |||
) |
TEST | ( | fc28 | , |
get_moisture_min_max | |||
) |
TEST | ( | fc28 | , |
get_moisture_in_between_10bits | |||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |