github.com/goravel/framework@v1.13.9/contracts/crypt/mocks/Crypt.go (about) 1 // Code generated by mockery v2.19.0. DO NOT EDIT. 2 3 package mocks 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // Crypt is an autogenerated mock type for the Crypt type 8 type Crypt struct { 9 mock.Mock 10 } 11 12 // DecryptString provides a mock function with given fields: payload 13 func (_m *Crypt) DecryptString(payload string) (string, error) { 14 ret := _m.Called(payload) 15 16 var r0 string 17 if rf, ok := ret.Get(0).(func(string) string); ok { 18 r0 = rf(payload) 19 } else { 20 r0 = ret.Get(0).(string) 21 } 22 23 var r1 error 24 if rf, ok := ret.Get(1).(func(string) error); ok { 25 r1 = rf(payload) 26 } else { 27 r1 = ret.Error(1) 28 } 29 30 return r0, r1 31 } 32 33 // EncryptString provides a mock function with given fields: value 34 func (_m *Crypt) EncryptString(value string) (string, error) { 35 ret := _m.Called(value) 36 37 var r0 string 38 if rf, ok := ret.Get(0).(func(string) string); ok { 39 r0 = rf(value) 40 } else { 41 r0 = ret.Get(0).(string) 42 } 43 44 var r1 error 45 if rf, ok := ret.Get(1).(func(string) error); ok { 46 r1 = rf(value) 47 } else { 48 r1 = ret.Error(1) 49 } 50 51 return r0, r1 52 } 53 54 type mockConstructorTestingTNewCrypt interface { 55 mock.TestingT 56 Cleanup(func()) 57 } 58 59 // NewCrypt creates a new instance of Crypt. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 60 func NewCrypt(t mockConstructorTestingTNewCrypt) *Crypt { 61 mock := &Crypt{} 62 mock.Mock.Test(t) 63 64 t.Cleanup(func() { mock.AssertExpectations(t) }) 65 66 return mock 67 }