This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
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.
Adding flags, delete confirmation and new tests to delete repo #908
Adding flags, delete confirmation and new tests to delete repo #908
Changes from all commits
76d17af
97001f3
e53cfcb
2475894
2e56dfe
4d27d76
3490c64
36ad793
e2f239b
d85ee30
1dcbacf
77b955b
6ce866f
749962d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
What do you think about adding tests on the
deleter_test.go
on this rule?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.
It looks like a great idea, but at the same time it feels like it is already being tested.
deleter_test.go
already checks for generic errors insideDelete
function. And aiming to check for this specific rule tests should be refactored similarly to what happened todelete_repo_test.go
.On the other hand, on
deleter_test.go
we assure that any removal error is sent to callers and we certify it on "error to delete repo with wrong name" (delete_repo_test.go
line 142).In this fashion, I am not sure if
deleter_test.go
should get a refactor issue so this rule could be tested as noted.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.
In any way
deleter_test
will still have to be refactored, maybe not necessary on this PR, but we should keep in mind