github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/kubeconfig/automock/kc_builder.go (about)

     1  // Code generated by mockery v2.14.0. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	internal "github.com/kyma-project/kyma-environment-broker/internal"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  )
    10  
    11  // KcBuilder is an autogenerated mock type for the KcBuilder type
    12  type KcBuilder struct {
    13  	mock.Mock
    14  }
    15  
    16  // Build provides a mock function with given fields: _a0
    17  func (_m *KcBuilder) Build(_a0 *internal.Instance) (string, error) {
    18  	ret := _m.Called(_a0)
    19  
    20  	var r0 string
    21  	if rf, ok := ret.Get(0).(func(*internal.Instance) string); ok {
    22  		r0 = rf(_a0)
    23  	} else {
    24  		r0 = ret.Get(0).(string)
    25  	}
    26  
    27  	var r1 error
    28  	if rf, ok := ret.Get(1).(func(*internal.Instance) error); ok {
    29  		r1 = rf(_a0)
    30  	} else {
    31  		r1 = ret.Error(1)
    32  	}
    33  
    34  	return r0, r1
    35  }
    36  
    37  // BuildFromAdminKubeconfig provides a mock function with given fields: instance, adminKubeconfig
    38  func (_m *KcBuilder) BuildFromAdminKubeconfig(instance *internal.Instance, adminKubeconfig string) (string, error) {
    39  	ret := _m.Called(instance, adminKubeconfig)
    40  
    41  	var r0 string
    42  	if rf, ok := ret.Get(0).(func(*internal.Instance, string) string); ok {
    43  		r0 = rf(instance, adminKubeconfig)
    44  	} else {
    45  		r0 = ret.Get(0).(string)
    46  	}
    47  
    48  	var r1 error
    49  	if rf, ok := ret.Get(1).(func(*internal.Instance, string) error); ok {
    50  		r1 = rf(instance, adminKubeconfig)
    51  	} else {
    52  		r1 = ret.Error(1)
    53  	}
    54  
    55  	return r0, r1
    56  }
    57  
    58  type mockConstructorTestingTNewKcBuilder interface {
    59  	mock.TestingT
    60  	Cleanup(func())
    61  }
    62  
    63  // NewKcBuilder creates a new instance of KcBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    64  func NewKcBuilder(t mockConstructorTestingTNewKcBuilder) *KcBuilder {
    65  	mock := &KcBuilder{}
    66  	mock.Mock.Test(t)
    67  
    68  	t.Cleanup(func() { mock.AssertExpectations(t) })
    69  
    70  	return mock
    71  }