firmware
v0.1.2
Chromation Spectrometer Dev-Kit
|
Faked calls record themselves in mock
.
More...
Go to the source code of this file.
Functions | |
static RecordedCall * | Record_LisReadout (uint16_t arg1) |
void | LisReadout_fake (uint16_t num_pixels) |
static RecordedCall * | Record_LisExpose (void) |
void | LisExpose_fake (void) |
static RecordedCall * | Record_LisWriteConfig (void) |
void | LisWriteConfig_fake (void) |
static RecordedCall * | Record__ConfigAs28bits (uint8_t *arg1) |
void | _ConfigAs28bits_fake (uint8_t *config) |
static RecordedCall * | Record__WaitForLisClkLow (void) |
void | _WaitForLisClkLow_fake (void) |
static RecordedCall * | Record__WaitForLisClkHigh (void) |
void | _WaitForLisClkHigh_fake (void) |
static RecordedCall * | Record__EnterLisProgrammingMode (void) |
void | _EnterLisProgrammingMode_fake (void) |
static RecordedCall * | Record__WriteLisConfigBit (uint8_t *arg1, uint8_t arg2) |
void | _WriteLisConfigBit_fake (uint8_t const *config, uint8_t bit_index) |
static RecordedCall * | Record__Write28bitLisConfig (uint8_t *arg1) |
void | _Write28bitLisConfig_fake (uint8_t *config) |
static RecordedCall * | Record__ExitLisProgrammingMode (void) |
void | _ExitLisProgrammingMode_fake (void) |
Faked calls record themselves in mock
.
Tests access mock
to see what the function under test does:
TestSuite.exe
seg faults if any test accesses mock
without defining mock
.Mock.h
declares mock
:mock
is a global that is defined in test_runner
: mock
is allocated and deallocated in the setup/teardown for each test that calls the faked
call.mock
for an entire test suite by pointing setUp
and tearDown
in the test_runner
:test
with mock
defined:Definition in file Lis_faked.c.
void _ConfigAs28bits_fake | ( | uint8_t * | config | ) |
Fake records calls made by function under test.
Record:
Definition at line 102 of file Lis_faked.c.
void _EnterLisProgrammingMode_fake | ( | void | ) |
Fake records calls made by function under test.
Record:
Definition at line 148 of file Lis_faked.c.
void _ExitLisProgrammingMode_fake | ( | void | ) |
Fake records calls made by function under test.
Record:
Definition at line 212 of file Lis_faked.c.
void _WaitForLisClkHigh_fake | ( | void | ) |
Fake records calls made by function under test.
Record:
Definition at line 133 of file Lis_faked.c.
void _WaitForLisClkLow_fake | ( | void | ) |
Fake records calls made by function under test.
Record:
Definition at line 118 of file Lis_faked.c.
void _Write28bitLisConfig_fake | ( | uint8_t * | config | ) |
Fake records calls made by function under test.
Record:
Definition at line 196 of file Lis_faked.c.
void _WriteLisConfigBit_fake | ( | uint8_t const * | config, |
uint8_t | bit_index | ||
) |
Fake records calls made by function under test.
Record:
Definition at line 170 of file Lis_faked.c.
void LisExpose_fake | ( | void | ) |
Fake records calls made by function under test.
Record:
Definition at line 68 of file Lis_faked.c.
void LisReadout_fake | ( | uint16_t | num_pixels | ) |
Fake records calls made by function under test.
Record:
Definition at line 52 of file Lis_faked.c.
void LisWriteConfig_fake | ( | void | ) |
Fake records calls made by function under test.
Record:
Definition at line 83 of file Lis_faked.c.