Skip to content

Commit 6d7f257

Browse files
committed
Exclude save/load CRC functions from code coverage
1 parent e26fecb commit 6d7f257

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

speeduino/storage.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ TESTABLE_INLINE_STATIC uint16_t getSensorCalibrationCrcAddress(SensorCalibration
415415
return EEPROM_CALIBRATION_CLT_CRC;
416416
}
417417

418+
// LCOV_EXCL_START
419+
// Exclude simple wrappers from code coverage
418420
void saveCalibrationCrc(SensorCalibrationTable sensor, uint32_t calibrationCRC)
419421
{
420422
updateObject(getStorageAPI(), calibrationCRC, getSensorCalibrationCrcAddress(sensor));
@@ -426,6 +428,7 @@ uint32_t loadCalibrationCrc(SensorCalibrationTable sensor)
426428
uint32_t crc32_val;
427429
return loadObject(getStorageAPI(), getSensorCalibrationCrcAddress(sensor), crc32_val);
428430
}
431+
// LCOV_EXCL_STOP
429432

430433
// Utility functions.
431434
// By having these in this file, it prevents other files from calling EEPROM functions directly. This is useful due to differences in the EEPROM libraries on different devces

0 commit comments

Comments
 (0)