github.com/zcqzcg/fabric-ca@v2.0.0-alpha.0.20200416163940-d878ee6db75a+incompatible/lib/server/certificaterequest/mocks/RequestContext.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  package mocks
     3  
     4  import mock "github.com/stretchr/testify/mock"
     5  
     6  // RequestContext is an autogenerated mock type for the RequestContext type
     7  type RequestContext struct {
     8  	mock.Mock
     9  }
    10  
    11  // GetBoolQueryParm provides a mock function with given fields: _a0
    12  func (_m *RequestContext) GetBoolQueryParm(_a0 string) (bool, error) {
    13  	ret := _m.Called(_a0)
    14  
    15  	var r0 bool
    16  	if rf, ok := ret.Get(0).(func(string) bool); ok {
    17  		r0 = rf(_a0)
    18  	} else {
    19  		r0 = ret.Get(0).(bool)
    20  	}
    21  
    22  	var r1 error
    23  	if rf, ok := ret.Get(1).(func(string) error); ok {
    24  		r1 = rf(_a0)
    25  	} else {
    26  		r1 = ret.Error(1)
    27  	}
    28  
    29  	return r0, r1
    30  }
    31  
    32  // GetQueryParm provides a mock function with given fields: _a0
    33  func (_m *RequestContext) GetQueryParm(_a0 string) string {
    34  	ret := _m.Called(_a0)
    35  
    36  	var r0 string
    37  	if rf, ok := ret.Get(0).(func(string) string); ok {
    38  		r0 = rf(_a0)
    39  	} else {
    40  		r0 = ret.Get(0).(string)
    41  	}
    42  
    43  	return r0
    44  }