Skip to content

Commit

Permalink
Add coverage exclusions.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzwanenburg committed Apr 5, 2024
1 parent 562da80 commit 7b40785
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
[run]
concurrency = multiprocessing
parallel = true
parallel = true

[report]
exclude_also =
raise ValueError
raise TypeError
raise NotImplementedError
raise FileNotFoundError
warnings.warn
4 changes: 2 additions & 2 deletions test/import_image_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))


def _convert_to_numpy(as_slice=False):
def _convert_to_numpy(as_slice=False): # pragma: no cover
"""
Helper script for converting NIfTI files to numpy for testing numpy-based imports.
Expand Down Expand Up @@ -92,7 +92,7 @@ def _convert_to_numpy(as_slice=False):
np.save(target_mask_file, arr=source_mask)


def _convert_to_flat_directory():
def _convert_to_flat_directory(): # pragma: no cover
"""
Helper script for converting soft-tissue sarcoma imaging files to a flat directory.
:return:
Expand Down

0 comments on commit 7b40785

Please sign in to comment.