Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover all code paths in search_commits #2087

Merged
merged 1 commit into from Oct 21, 2021

Conversation

s-t-e-v-e-n-k
Copy link
Collaborator

The search_commits method was only very lightly tested, meaning over
half of it was not covered. Write another test case, covering all code
paths.

The search_commits method was only very lightly tested, meaning over
half of it was not covered. Write another test case, covering all code
paths.
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2021

Codecov Report

Merging #2087 (69df7c7) into master (93b92cd) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2087      +/-   ##
==========================================
+ Coverage   98.87%   98.91%   +0.04%     
==========================================
  Files         108      108              
  Lines       11109    11109              
==========================================
+ Hits        10984    10989       +5     
+ Misses        125      120       -5     
Impacted Files Coverage Δ
github/MainClass.py 96.94% <100.00%> (+1.69%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93b92cd...69df7c7. Read the comment docs.

@s-t-e-v-e-n-k s-t-e-v-e-n-k merged commit f1faf94 into PyGithub:master Oct 21, 2021
simkimsia added a commit to simkimsia/PyGithub that referenced this pull request Oct 24, 2021
commit 6452ddf
Author: Steve Kowalik <steven@wedontsleep.org>
Date:   Sun Oct 24 15:21:31 2021 +1100

    Add Repository.rename_branch method (PyGithub#2089)

    The GitHub API exposes an endpoint to rename a branch, so we should
    support calling it. Sadly, there is not enough information to add
    that method to the Branch class, so expose it in the Repository object.

    Fixes PyGithub#1901

commit c8a945b
Author: Claire Johns <42869556+johnsc1@users.noreply.github.com>
Date:   Sun Oct 24 00:15:31 2021 -0400

    Add function to delete pending reviews on a pull request (PyGithub#1897)

    Add a delete method to PullRequestReview to allow dismissing them.

    Fixes PyGithub#1856

    Co-authored-by: bagashvilit <bagashvilit@allegheny.edu>
    Co-authored-by: WonjoonC <chos@allegheny.edu>

commit f1faf94
Author: Steve Kowalik <steven@wedontsleep.org>
Date:   Fri Oct 22 08:39:31 2021 +1100

    Cover all code paths in search_commits (PyGithub#2087)

    The search_commits method was only very lightly tested, meaning over
    half of it was not covered. Write another test case, covering all code
    paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants