Skip to content

Commit

Permalink
Merge branch 'refactored' of github.com:philips-software/functiondefe…
Browse files Browse the repository at this point in the history
…xtractor into refactored
  • Loading branch information
Reddy committed Sep 8, 2020
2 parents 8eb4109 + f94662d commit 313ded3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions functiondefextractor/core_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def filter_reg_files(allfiles, reg_pattern):
else:
reg_pattern = reg_pattern.split(",")
for i in range(len(reg_pattern).__trunc__()):
cmd = "{} " + cmd
cmd = "{} " + cmd # pragma: no mutate
regex.append(fnmatch.translate(reg_pattern[i]))
cmd = "(" + cmd[:-1].replace(" ", "|") + ")" # pragma: no mutate
re_obj = re.compile(cmd.format(*regex))
Expand Down Expand Up @@ -193,7 +193,7 @@ def get_annot_methods(filename, line_num, annot):
data = str(file_content[iterator]).strip()
iterator = iterator - 1
ret_val = process_annot_method_body(annot, data, filename, line_num)
if ret_val != "continue":
if ret_val != "continue": # pragma: no mutate
return ret_val
except IndexError as exc:
LOG.info("error while processing file_line: %s", filename + "_" + line_num) # pragma: no mutate
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[mutmut]
paths_to_mutate=functiondefextractor
paths_to_exclude=test_resource,
paths_to_mutate=functiondefextractor/condition_checker.py, functiondefextractor/core_extractor.py, functiondefextractor/extractor_cmd.py, functiondefextractor/extractor_log.py
paths_to_exclude=test_resource
runner=python -m pytest test

0 comments on commit 313ded3

Please sign in to comment.