mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-29 15:08:21 +00:00
refactor: regen mocks, use existing VerifyWasCalled(Never()) (#3863)
This commit is contained in:
committed by
GitHub
parent
ce95f8ee05
commit
4d278ca6b4
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user