theCore C++ embedded framework
fc28_unit.cpp File Reference
#include <dev/sensor/fc28.hpp>
#include <CppUTest/TestHarness.h>
#include <CppUTest/CommandLineTestRunner.h>
#include <CppUTestExt/MockSupport.h>
#include <iostream>
Include dependency graph for fc28_unit.cpp:

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[])
 

Typedef Documentation

◆ test_fc28

Function Documentation

◆ TEST_GROUP()

TEST_GROUP ( fc28  )
Here is the call graph for this function:

◆ test_get_sample_with_delta()

template<typename Et , typename Dt , typename St , typename Rt >
static void test_get_sample_with_delta ( Et  expected,
Dt  delta,
St  sample,
Rt  resolution 
)
static
Here is the call graph for this function:

◆ TEST() [1/3]

TEST ( fc28  ,
power_up_down   
)
Here is the call graph for this function:

◆ TEST() [2/3]

TEST ( fc28  ,
get_moisture_min_max   
)
Here is the call graph for this function:

◆ TEST() [3/3]

TEST ( fc28  ,
get_moisture_in_between_10bits   
)
Here is the call graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)