Skip to content

Commit

Permalink
Exclude irrelevant code from coverage check
Browse files Browse the repository at this point in the history
  • Loading branch information
per1234 committed Sep 1, 2020
1 parent 3eea087 commit 415b7e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion compilesketches/compilesketches.py
Original file line number Diff line number Diff line change
Expand Up @@ -1385,4 +1385,4 @@ def get_head_commit_hash():

# Only execute the following code if the script is run directly, not imported
if __name__ == "__main__":
main()
main() # pragma: no cover
14 changes: 7 additions & 7 deletions compilesketches/tests/test_compilesketches.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_main(capsys,

class CompileSketches:
def compile_sketches(self):
pass
pass # pragma: no cover

monkeypatch.setenv("INPUT_CLI-VERSION", cli_version)
monkeypatch.setenv("INPUT_FQBN", fqbn_arg)
Expand Down Expand Up @@ -238,10 +238,10 @@ def __init__(self):
self.base = self

def get_repo(self):
pass
pass # pragma: no cover

def get_pull(self, number):
pass
pass # pragma: no cover

github_api_object = Github()
monkeypatch.setenv("GITHUB_EVENT_PATH", str(test_data_path.joinpath("githubevent.json")))
Expand Down Expand Up @@ -1228,7 +1228,7 @@ def __init__(self):
self.git = self

def checkout(self):
pass
pass # pragma: no cover

compile_sketches = get_compilesketches_object()

Expand Down Expand Up @@ -1519,10 +1519,10 @@ def __init__(self):
self.git = self

def fetch(self):
pass
pass # pragma: no cover

def checkout(self):
pass
pass # pragma: no cover

compile_sketches = get_compilesketches_object(enable_size_deltas_report="true", deltas_base_ref=deltas_base_ref)

Expand Down Expand Up @@ -2259,7 +2259,7 @@ def __init__(self):
self.git = self

def rev_parse(self):
pass
pass # pragma: no cover

monkeypatch.setenv("GITHUB_EVENT_NAME", github_event)
monkeypatch.setenv("GITHUB_EVENT_PATH", str(test_data_path.joinpath("githubevent.json")))
Expand Down

0 comments on commit 415b7e9

Please sign in to comment.