-
Notifications
You must be signed in to change notification settings - Fork 485
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
🌱 Unit tests for git client #3328
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
naveensrinivasan
requested review from
azeemshaikh38,
justaugustus,
laurentsimon,
spencerschrock and
raghavkaul
as code owners
July 29, 2023 00:00
naveensrinivasan
force-pushed
the
naveen/tests/clients/git
branch
from
July 29, 2023 00:00
70ba1ae
to
9e71994
Compare
naveensrinivasan
temporarily deployed
to
integration-test
July 29, 2023 00:00
— with
GitHub Actions
Inactive
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3328 +/- ##
===========================================
- Coverage 74.41% 63.09% -11.33%
===========================================
Files 175 175
Lines 12856 12856
===========================================
- Hits 9567 8111 -1456
- Misses 2746 4290 +1544
+ Partials 543 455 -88 |
@naveensrinivasan do you plan to continue this one? |
Yes. |
- Add test functions to the Git client for testing repository initialization, commit listing, and search functionality [clients/git/client_test.go] - Add `createTestRepo` function to set up a test repository - Add `TestInitRepo` to test the initialization of a repository - Add `TestListCommits` to test the listing of commits - Add `TestSearch` to test the search functionality Signed-off-by: naveensrinivasan <[email protected]>
naveensrinivasan
force-pushed
the
naveen/tests/clients/git
branch
from
August 14, 2023 01:37
9e71994
to
a245f05
Compare
naveensrinivasan
temporarily deployed
to
gitlab
August 14, 2023 01:37
— with
GitHub Actions
Inactive
naveensrinivasan
temporarily deployed
to
integration-test
August 14, 2023 01:37
— with
GitHub Actions
Inactive
Signed-off-by: naveensrinivasan <[email protected]>
naveensrinivasan
force-pushed
the
naveen/tests/clients/git
branch
from
August 15, 2023 16:49
a245f05
to
2265f0f
Compare
naveensrinivasan
temporarily deployed
to
gitlab
August 15, 2023 16:49
— with
GitHub Actions
Inactive
naveensrinivasan
temporarily deployed
to
integration-test
August 15, 2023 16:49
— with
GitHub Actions
Inactive
spencerschrock
approved these changes
Aug 15, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
spencerschrock
temporarily deployed
to
integration-test
August 15, 2023 17:10
— with
GitHub Actions
Inactive
ashearin
pushed a commit
to kgangerlm/scorecard-gitlab
that referenced
this pull request
Nov 13, 2023
- Add test functions to the Git client for testing repository initialization, commit listing, and search functionality [clients/git/client_test.go] - Add `createTestRepo` function to set up a test repository - Add `TestInitRepo` to test the initialization of a repository - Add `TestListCommits` to test the listing of commits - Add `TestSearch` to test the search functionality 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[clients/git/client_test.go]
createTestRepo
function to set up a test repositoryTestInitRepo
to test the initialization of a repositoryTestListCommits
to test the listing of commitsTestSearch
to test the search functionalityWhat 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)?**
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.)