Skip to content

These module docs are in beta and may be incomplete.

modm:unittest: Unit Tests

Lightweight library for on-device unit testing.

Content

// Class
class unittest::Controller;
class unittest::CountType;
class unittest::Reporter;
class unittest::TestSuite;

// Define
#define TEST_ASSERT_DIFFERS(x, y)
#define TEST_ASSERT_EQUALS(x, y)
#define TEST_ASSERT_EQUALS_ARRAY(x, y, count, start)
#define TEST_ASSERT_EQUALS_DELTA(x, y, d)
#define TEST_ASSERT_EQUALS_FLOAT(x, y)
#define TEST_ASSERT_EQUALS_RANGE(value, lower, upper)
#define TEST_ASSERT_EQUALS_STRING(x, y)
#define TEST_ASSERT_FALSE(expr)
#define TEST_ASSERT_TRUE(expr)
#define TEST_FAIL(msg)

Dependencies

modm:unittest modm_unittest modm: unittest modm_architecture_accessor modm: architecture: accessor modm_unittest->modm_architecture_accessor modm_io modm: io modm_unittest->modm_io