-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathio_byte_scanner_mock_test.go
65 lines (50 loc) · 1009 Bytes
/
io_byte_scanner_mock_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* CODE GENERATED AUTOMATICALLY WITH github.com/ernesto-jimenez/goautomock
* THIS FILE MUST NEVER BE EDITED MANUALLY
*/
package main
import (
"fmt"
mock "github.com/stretchr/testify/mock"
)
// ByteScannerMock mock
type ByteScannerMock struct {
mock.Mock
}
func NewByteScannerMock() *ByteScannerMock {
return &ByteScannerMock{}
}
// ReadByte mocked method
func (m *ByteScannerMock) ReadByte() (byte, error) {
ret := m.Called()
var r0 byte
switch res := ret.Get(0).(type) {
case nil:
case byte:
r0 = res
default:
panic(fmt.Sprintf("unexpected type: %v", res))
}
var r1 error
switch res := ret.Get(1).(type) {
case nil:
case error:
r1 = res
default:
panic(fmt.Sprintf("unexpected type: %v", res))
}
return r0, r1
}
// UnreadByte mocked method
func (m *ByteScannerMock) UnreadByte() error {
ret := m.Called()
var r0 error
switch res := ret.Get(0).(type) {
case nil:
case error:
r0 = res
default:
panic(fmt.Sprintf("unexpected type: %v", res))
}
return r0
}