mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-01 07:50:26 +02:00
merge main
This commit is contained in:
parent
20cb1c557d
commit
b8bdb15aad
2 changed files with 14 additions and 9 deletions
|
@ -4,12 +4,12 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"go.uber.org/mock/gomock"
|
||||||
|
|
||||||
health "github.com/pomerium/pomerium/pkg/health"
|
health "github.com/pomerium/pomerium/pkg/health"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:generate go run github.com/golang/mock/mockgen -package health_test -destination provider_mock_test.go github.com/pomerium/pomerium/pkg/health Provider
|
//go:generate go run go.uber.org/mock/mockgen -package health_test -destination provider_mock_test.go github.com/pomerium/pomerium/pkg/health Provider
|
||||||
|
|
||||||
func TestDeduplicate(t *testing.T) {
|
func TestDeduplicate(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
// Code generated by MockGen. DO NOT EDIT.
|
// Code generated by MockGen. DO NOT EDIT.
|
||||||
// Source: github.com/pomerium/pomerium/pkg/health (interfaces: Provider)
|
// Source: github.com/pomerium/pomerium/pkg/health (interfaces: Provider)
|
||||||
|
//
|
||||||
|
// Generated by this command:
|
||||||
|
//
|
||||||
|
// mockgen -package health_test -destination provider_mock_test.go github.com/pomerium/pomerium/pkg/health Provider
|
||||||
|
//
|
||||||
|
|
||||||
// Package health_test is a generated GoMock package.
|
// Package health_test is a generated GoMock package.
|
||||||
package health_test
|
package health_test
|
||||||
|
@ -7,8 +12,8 @@ package health_test
|
||||||
import (
|
import (
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
|
|
||||||
gomock "github.com/golang/mock/gomock"
|
|
||||||
health "github.com/pomerium/pomerium/pkg/health"
|
health "github.com/pomerium/pomerium/pkg/health"
|
||||||
|
gomock "go.uber.org/mock/gomock"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockProvider is a mock of Provider interface.
|
// MockProvider is a mock of Provider interface.
|
||||||
|
@ -37,7 +42,7 @@ func (m *MockProvider) EXPECT() *MockProviderMockRecorder {
|
||||||
// ReportError mocks base method.
|
// ReportError mocks base method.
|
||||||
func (m *MockProvider) ReportError(arg0 health.Check, arg1 error, arg2 ...health.Attr) {
|
func (m *MockProvider) ReportError(arg0 health.Check, arg1 error, arg2 ...health.Attr) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
varargs := []interface{}{arg0, arg1}
|
varargs := []any{arg0, arg1}
|
||||||
for _, a := range arg2 {
|
for _, a := range arg2 {
|
||||||
varargs = append(varargs, a)
|
varargs = append(varargs, a)
|
||||||
}
|
}
|
||||||
|
@ -45,16 +50,16 @@ func (m *MockProvider) ReportError(arg0 health.Check, arg1 error, arg2 ...health
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReportError indicates an expected call of ReportError.
|
// ReportError indicates an expected call of ReportError.
|
||||||
func (mr *MockProviderMockRecorder) ReportError(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
func (mr *MockProviderMockRecorder) ReportError(arg0, arg1 any, arg2 ...any) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
varargs := append([]any{arg0, arg1}, arg2...)
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportError", reflect.TypeOf((*MockProvider)(nil).ReportError), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportError", reflect.TypeOf((*MockProvider)(nil).ReportError), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReportOK mocks base method.
|
// ReportOK mocks base method.
|
||||||
func (m *MockProvider) ReportOK(arg0 health.Check, arg1 ...health.Attr) {
|
func (m *MockProvider) ReportOK(arg0 health.Check, arg1 ...health.Attr) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
varargs := []interface{}{arg0}
|
varargs := []any{arg0}
|
||||||
for _, a := range arg1 {
|
for _, a := range arg1 {
|
||||||
varargs = append(varargs, a)
|
varargs = append(varargs, a)
|
||||||
}
|
}
|
||||||
|
@ -62,8 +67,8 @@ func (m *MockProvider) ReportOK(arg0 health.Check, arg1 ...health.Attr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReportOK indicates an expected call of ReportOK.
|
// ReportOK indicates an expected call of ReportOK.
|
||||||
func (mr *MockProviderMockRecorder) ReportOK(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
|
func (mr *MockProviderMockRecorder) ReportOK(arg0 any, arg1 ...any) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
varargs := append([]interface{}{arg0}, arg1...)
|
varargs := append([]any{arg0}, arg1...)
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportOK", reflect.TypeOf((*MockProvider)(nil).ReportOK), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportOK", reflect.TypeOf((*MockProvider)(nil).ReportOK), varargs...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue