mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-06 16:18:41 +00:00
* Add pre and post workflow hook status * fix missing mocks * fix pre/post workflow hooks tests * add cmd output to file * fix typo * add cmd output to file on pre workflow hooks * Add hooks output to web UI * Remove unnecessary dependencies * Clean the code and make tests work again * Make lint happy * Small fixes, create dedicated UUID generator and docs * Add missing commentary * Use matchers instead of mocking for tests and fix e2e tests * Change 'OUTPUT_FILE' to 'OUTPUT_STATUS_FILE' * Reduce SendWorkflowHook calls on hooks * Apply suggestions from code review Co-authored-by: PePe Amengual <jose.amengual@gmail.com> Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
34 lines
941 B
Go
34 lines
941 B
Go
// Code generated by pegomock. DO NOT EDIT.
|
|
package matchers
|
|
|
|
import (
|
|
"github.com/petergtz/pegomock"
|
|
"reflect"
|
|
|
|
models "github.com/runatlantis/atlantis/server/events/models"
|
|
)
|
|
|
|
func AnyModelsPullRequest() models.PullRequest {
|
|
pegomock.RegisterMatcher(pegomock.NewAnyMatcher(reflect.TypeOf((*(models.PullRequest))(nil)).Elem()))
|
|
var nullValue models.PullRequest
|
|
return nullValue
|
|
}
|
|
|
|
func EqModelsPullRequest(value models.PullRequest) models.PullRequest {
|
|
pegomock.RegisterMatcher(&pegomock.EqMatcher{Value: value})
|
|
var nullValue models.PullRequest
|
|
return nullValue
|
|
}
|
|
|
|
func NotEqModelsPullRequest(value models.PullRequest) models.PullRequest {
|
|
pegomock.RegisterMatcher(&pegomock.NotEqMatcher{Value: value})
|
|
var nullValue models.PullRequest
|
|
return nullValue
|
|
}
|
|
|
|
func ModelsPullRequestThat(matcher pegomock.ArgumentMatcher) models.PullRequest {
|
|
pegomock.RegisterMatcher(matcher)
|
|
var nullValue models.PullRequest
|
|
return nullValue
|
|
}
|