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

🌱 Added unit tests for rpc #3203

Merged
merged 1 commit into from
Jun 26, 2023
Merged

🌱 Added unit tests for rpc #3203

merged 1 commit into from
Jun 26, 2023

Conversation

naveensrinivasan
Copy link
Member

@naveensrinivasan naveensrinivasan commented Jun 22, 2023

  • Add tests for TokenOverRPC.Next and TokenOverRPC.Release

What kind of change does this PR introduce?

(Is it a bug fix, feature, docs update, something else?)

What is the current behavior?

What is the new behavior (if this is a feature change)?**

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Special notes for your reviewer

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)


@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Merging #3203 (6449e11) into main (a858c06) will increase coverage by 0.11%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3203      +/-   ##
==========================================
+ Coverage   62.82%   62.93%   +0.11%     
==========================================
  Files         168      168              
  Lines       12600    12600              
==========================================
+ Hits         7916     7930      +14     
+ Misses       4252     4238      -14     
  Partials      432      432              

@naveensrinivasan naveensrinivasan enabled auto-merge (squash) June 22, 2023 21:14
- Add a mockTokenAccessor and TokenOverRPC wrapper for testing
- Add tests for TokenOverRPC.Next and TokenOverRPC.Release

[clients/githubrepo/roundtripper/tokens/rpc_test.go]
- Add a mockTokenAccessor for testing
- Add a TokenOverRPC wrapper
- Add a Next method to TokenOverRPC
- Add a Release method to TokenOverRPC
- Add a test for TokenOverRPC.Next
- Add a test for TokenOverRPC.Release

Signed-off-by: naveensrinivasan <[email protected]>
@naveensrinivasan naveensrinivasan temporarily deployed to integration-test June 26, 2023 22:18 — with GitHub Actions Inactive
@naveensrinivasan naveensrinivasan merged commit edacaa6 into main Jun 26, 2023
@naveensrinivasan naveensrinivasan deleted the naveen/unit-tests/rpc branch June 26, 2023 22:28
ashearin pushed a commit to kgangerlm/scorecard-gitlab that referenced this pull request Nov 13, 2023
- Add a mockTokenAccessor and TokenOverRPC wrapper for testing
- Add tests for TokenOverRPC.Next and TokenOverRPC.Release

[clients/githubrepo/roundtripper/tokens/rpc_test.go]
- Add a mockTokenAccessor for testing
- Add a TokenOverRPC wrapper
- Add a Next method to TokenOverRPC
- Add a Release method to TokenOverRPC
- Add a test for TokenOverRPC.Next
- Add a test for TokenOverRPC.Release

Signed-off-by: naveensrinivasan <[email protected]>
Signed-off-by: Allen Shearin <[email protected]>
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.

2 participants