M5UnitUnified 0.0.2 git rev:a353e8c
Loading...
Searching...
No Matches
test_helper.hpp File Reference

Helper for testing UnitComponent. More...

#include <M5Utility.hpp>
#include <thread>
#include <cassert>

Go to the source code of this file.

Namespaces

namespace  m5
 Top level namespace of M5stack.
 

Functions

template<class U >
uint32_t m5::unit::googletest::test_periodic_measurement (U *unit, const uint32_t times, const uint32_t tolerance, const uint32_t timeout_duration, void(*callback)(U *), const bool skip_after_test)
 
template<class U >
uint32_t m5::unit::googletest::test_periodic_measurement (U *unit, const uint32_t times=8, const uint32_t tolerance=1, void(*callback)(U *)=nullptr, const bool skip_after_test=false)
 
template<class U >
uint32_t m5::unit::googletest::test_periodic_measurement (U *unit, const uint32_t times=8, void(*callback)(U *)=nullptr, const bool skip_after_test=false)
 

Detailed Description

Helper for testing UnitComponent.

Note
Depends on GoogleTest