refactor: regen mocks, use existing VerifyWasCalled(Never()) (#3863)

This commit is contained in:
Finn Arne Gangstad
2023-12-12 03:35:13 +01:00
committed by GitHub
parent ce95f8ee05
commit 4d278ca6b4
2 changed files with 1 additions and 8 deletions

View File

@@ -729,7 +729,7 @@ func TestRunUnlockCommandDoesntRetrieveLabelsIfDisableUnlockLabelNotSet(t *testi
ch.RunCommentCommand(testdata.GithubRepo, &testdata.GithubRepo, nil, testdata.User, testdata.Pull.Num, &events.CommentCommand{Name: command.Unlock})
vcsClient.VerifyWasNotCalled().GetPullLabels(testdata.GithubRepo, modelPull)
vcsClient.VerifyWasCalled(Never()).GetPullLabels(testdata.GithubRepo, modelPull)
}
func TestRunAutoplanCommand_DeletePlans(t *testing.T) {

View File

@@ -286,13 +286,6 @@ func (mock *MockClient) UpdateStatus(repo models.Repo, pull models.PullRequest,
return ret0
}
func (mock *MockClient) VerifyWasNotCalled() *VerifierMockClient {
return &VerifierMockClient{
mock: mock,
invocationCountMatcher: pegomock.Times(0),
}
}
func (mock *MockClient) VerifyWasCalledOnce() *VerifierMockClient {
return &VerifierMockClient{
mock: mock,