github.com/anycable/anycable-go@v1.5.1/mocks/Handler.go (about)

     1  // Code generated by mockery v2.20.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	slog "log/slog"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  )
    10  
    11  // Handler is an autogenerated mock type for the Handler type
    12  type Handler struct {
    13  	mock.Mock
    14  }
    15  
    16  // HandleBroadcast provides a mock function with given fields: json
    17  func (_m *Handler) HandleBroadcast(json []byte) {
    18  	_m.Called(json)
    19  }
    20  
    21  // HandlePubSub provides a mock function with given fields: json
    22  func (_m *Handler) HandlePubSub(json []byte) {
    23  	_m.Called(json)
    24  }
    25  
    26  // Logger provides a mock function with given fields:
    27  func (_m *Handler) Logger() *slog.Logger {
    28  	ret := _m.Called()
    29  
    30  	var r0 *slog.Logger
    31  	if rf, ok := ret.Get(0).(func() *slog.Logger); ok {
    32  		r0 = rf()
    33  	} else {
    34  		if ret.Get(0) != nil {
    35  			r0 = ret.Get(0).(*slog.Logger)
    36  		}
    37  	}
    38  
    39  	return r0
    40  }
    41  
    42  type mockConstructorTestingTNewHandler interface {
    43  	mock.TestingT
    44  	Cleanup(func())
    45  }
    46  
    47  // NewHandler creates a new instance of Handler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    48  func NewHandler(t mockConstructorTestingTNewHandler) *Handler {
    49  	mock := &Handler{}
    50  	mock.Mock.Test(t)
    51  
    52  	t.Cleanup(func() { mock.AssertExpectations(t) })
    53  
    54  	return mock
    55  }