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__FtClockDatabus (uint8_t arg1) |
void | _FtClockDatabus_fake (uint8_t direction) |
static RecordedCall * | Record__FtReadDatabus (uint8_t *arg1) |
void | _FtReadDatabus_fake (uint8_t *pbyte) |
static RecordedCall * | Record__FtWriteDatabus (uint8_t arg1) |
void | _FtWriteDatabus_fake (uint8_t byte) |
static RecordedCall * | Record__FtDatabusPinDirection (uint8_t arg1) |
void | _FtDatabusPinDirection_fake (uint8_t pin_direction) |
static RecordedCall * | Record_FtSelectFT221X (void) |
void | FtSelectFT221X_fake (void) |
static RecordedCall * | Record_FtBusTurnaround (void) |
void | FtBusTurnaround_fake (void) |
static RecordedCall * | Record_FtIsOk (void) |
bool | FtIsOk_fake (void) |
static RecordedCall * | Record_FtRead (uint8_t *arg1) |
void | FtRead_fake (uint8_t *pbyte) |
static RecordedCall * | Record_FtWrite (uint8_t arg1) |
void | FtWrite_fake (uint8_t byte) |
static RecordedCall * | Record_FtUnselectFT221X (void) |
void | FtUnselectFT221X_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 Usb_faked.c.
void _FtClockDatabus_fake | ( | uint8_t | direction | ) |
Fake records calls made by function under test.
Record:
Definition at line 54 of file Usb_faked.c.
void _FtDatabusPinDirection_fake | ( | uint8_t | pin_direction | ) |
Fake records calls made by function under test.
Record:
Definition at line 114 of file Usb_faked.c.
void _FtReadDatabus_fake | ( | uint8_t * | pbyte | ) |
Fake records calls made by function under test.
Record:
Definition at line 74 of file Usb_faked.c.
void _FtWriteDatabus_fake | ( | uint8_t | byte | ) |
Fake records calls made by function under test.
Record:
Definition at line 94 of file Usb_faked.c.
void FtBusTurnaround_fake | ( | void | ) |
Fake records calls made by function under test.
Record:
Definition at line 147 of file Usb_faked.c.
bool FtIsOk_fake | ( | void | ) |
Fake records calls made by function under test.
Record:
Definition at line 162 of file Usb_faked.c.
void FtRead_fake | ( | uint8_t * | pbyte | ) |
Fake records calls made by function under test.
Record:
Definition at line 182 of file Usb_faked.c.
void FtSelectFT221X_fake | ( | void | ) |
Fake records calls made by function under test.
Record:
Definition at line 132 of file Usb_faked.c.
void FtUnselectFT221X_fake | ( | void | ) |
Fake records calls made by function under test.
Record:
Definition at line 218 of file Usb_faked.c.
void FtWrite_fake | ( | uint8_t | byte | ) |
Fake records calls made by function under test.
Record:
Definition at line 202 of file Usb_faked.c.