mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-30 09:11:07 +00:00
chore(core): silence false alarms in coverage report
[no changelog]
This commit is contained in:
parent
d4fbd4a95d
commit
a1663de771
13
core/.coveragerc
Normal file
13
core/.coveragerc
Normal file
@ -0,0 +1,13 @@
|
||||
[report]
|
||||
# Regexes for lines to exclude from consideration
|
||||
exclude_lines =
|
||||
from typing import
|
||||
if TYPE_CHECKING:
|
||||
# local const variables, e.g. _FIELD_TYPE_VL = const(7)
|
||||
^_.*const\(\d+
|
||||
assert False
|
||||
pass
|
||||
raise RuntimeError
|
||||
raise NotImplementedError
|
||||
def mem_dump
|
||||
def __repr__(self)
|
@ -28,10 +28,14 @@ fi
|
||||
|
||||
EXCLUDES="\
|
||||
src/all_modules.py,\
|
||||
src/typing.py,\
|
||||
src/apps/ethereum/tokens.py,\
|
||||
src/apps/webauthn/knownapps.py,\
|
||||
src/apps/common/coininfo.py,\
|
||||
src/trezor/messages.py,\
|
||||
src/trezor/enums/__init__.py"
|
||||
|
||||
# Uses core/.coveragerc configuration file
|
||||
coverage html \
|
||||
--omit="$EXCLUDES" \
|
||||
--fail-under=${COVERAGE_THRESHOLD}
|
||||
|
Loading…
Reference in New Issue
Block a user