github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/pkg/graphql_client/automock/graph_ql_client.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 context "context" 7 8 graphql "github.com/machinebox/graphql" 9 10 mock "github.com/stretchr/testify/mock" 11 ) 12 13 // GraphQLClient is an autogenerated mock type for the GraphQLClient type 14 type GraphQLClient struct { 15 mock.Mock 16 } 17 18 // Run provides a mock function with given fields: _a0, _a1, _a2 19 func (_m *GraphQLClient) Run(_a0 context.Context, _a1 *graphql.Request, _a2 interface{}) error { 20 ret := _m.Called(_a0, _a1, _a2) 21 22 var r0 error 23 if rf, ok := ret.Get(0).(func(context.Context, *graphql.Request, interface{}) error); ok { 24 r0 = rf(_a0, _a1, _a2) 25 } else { 26 r0 = ret.Error(0) 27 } 28 29 return r0 30 } 31 32 type mockConstructorTestingTNewGraphQLClient interface { 33 mock.TestingT 34 Cleanup(func()) 35 } 36 37 // NewGraphQLClient creates a new instance of GraphQLClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 38 func NewGraphQLClient(t mockConstructorTestingTNewGraphQLClient) *GraphQLClient { 39 mock := &GraphQLClient{} 40 mock.Mock.Test(t) 41 42 t.Cleanup(func() { mock.AssertExpectations(t) }) 43 44 return mock 45 }