mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-09 11:14:26 +02:00
Exclude a few lines from lcov coverage stats:
- "fail" branches in selftests - "should never happen" errors in SSL - cipher_xxx() failures in SSL - some things that fail only if malloc() fails - some things that fail only if fread/fwrite()/ftell() fails (after fopen() succeeded) - some things that fail only if a parameter is invalid, but the parameter was actually validated earlier - generated code in library/error.c
This commit is contained in:
committed by
Manuel Pégourié-Gonnard
parent
021c8d61f2
commit
a0d3a26dbd
@@ -62,7 +62,9 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
|
||||
// High level error codes
|
||||
//
|
||||
// BEGIN generated code
|
||||
// LCOV_EXCL_START
|
||||
HIGH_LEVEL_CODE_CHECKS
|
||||
// LCOV_EXCL_STOP
|
||||
// END generated code
|
||||
|
||||
if( strlen( buf ) == 0 )
|
||||
@@ -93,7 +95,9 @@ HIGH_LEVEL_CODE_CHECKS
|
||||
// Low level error codes
|
||||
//
|
||||
// BEGIN generated code
|
||||
// LCOV_EXCL_START
|
||||
LOW_LEVEL_CODE_CHECKS
|
||||
// LCOV_EXCL_STOP
|
||||
// END generated code
|
||||
|
||||
if( strlen( buf ) != 0 )
|
||||
|
||||
Reference in New Issue
Block a user