github.com/goravel/framework@v1.13.9/contracts/http/mocks/ResponseStatus.go (about)

     1  // Code generated by mockery v2.33.1. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	http "github.com/goravel/framework/contracts/http"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // ResponseStatus is an autogenerated mock type for the ResponseStatus type
    11  type ResponseStatus struct {
    12  	mock.Mock
    13  }
    14  
    15  // Data provides a mock function with given fields: contentType, data
    16  func (_m *ResponseStatus) Data(contentType string, data []byte) http.Response {
    17  	ret := _m.Called(contentType, data)
    18  
    19  	var r0 http.Response
    20  	if rf, ok := ret.Get(0).(func(string, []byte) http.Response); ok {
    21  		r0 = rf(contentType, data)
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(http.Response)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // Json provides a mock function with given fields: obj
    32  func (_m *ResponseStatus) Json(obj interface{}) http.Response {
    33  	ret := _m.Called(obj)
    34  
    35  	var r0 http.Response
    36  	if rf, ok := ret.Get(0).(func(interface{}) http.Response); ok {
    37  		r0 = rf(obj)
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).(http.Response)
    41  		}
    42  	}
    43  
    44  	return r0
    45  }
    46  
    47  // String provides a mock function with given fields: format, values
    48  func (_m *ResponseStatus) String(format string, values ...interface{}) http.Response {
    49  	var _ca []interface{}
    50  	_ca = append(_ca, format)
    51  	_ca = append(_ca, values...)
    52  	ret := _m.Called(_ca...)
    53  
    54  	var r0 http.Response
    55  	if rf, ok := ret.Get(0).(func(string, ...interface{}) http.Response); ok {
    56  		r0 = rf(format, values...)
    57  	} else {
    58  		if ret.Get(0) != nil {
    59  			r0 = ret.Get(0).(http.Response)
    60  		}
    61  	}
    62  
    63  	return r0
    64  }
    65  
    66  // NewResponseStatus creates a new instance of ResponseStatus. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    67  // The first argument is typically a *testing.T value.
    68  func NewResponseStatus(t interface {
    69  	mock.TestingT
    70  	Cleanup(func())
    71  }) *ResponseStatus {
    72  	mock := &ResponseStatus{}
    73  	mock.Mock.Test(t)
    74  
    75  	t.Cleanup(func() { mock.AssertExpectations(t) })
    76  
    77  	return mock
    78  }