-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
clear_expect_bytes_gen.go
60 lines (55 loc) · 1.88 KB
/
clear_expect_bytes_gen.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
// +build !generate
package hit
import errortrace "github.com/Eun/go-hit/errortrace"
// ⚠️⚠️⚠️ This file was autogenerated by generators/clear/clear ⚠️⚠️⚠️ //
// IClearExpectBytes provides methods to clear steps.
type IClearExpectBytes interface {
IStep
// Contains clears all matching Contains steps
Contains(value ...[]uint8) IStep
// Equal clears all matching Equal steps
Equal(value ...[]uint8) IStep
// Len clears all matching Len steps
Len() IClearExpectInt
// NotContains clears all matching NotContains steps
NotContains(value ...[]uint8) IStep
// NotEqual clears all matching NotEqual steps
NotEqual(value ...[]uint8) IStep
}
type clearExpectBytes struct {
cp callPath
tr *errortrace.ErrorTrace
}
func newClearExpectBytes(cp callPath) IClearExpectBytes {
return &clearExpectBytes{cp: cp, tr: ett.Prepare()}
}
func (v *clearExpectBytes) trace() *errortrace.ErrorTrace {
return v.tr
}
func (*clearExpectBytes) when() StepTime {
return cleanStep
}
func (v *clearExpectBytes) callPath() callPath {
return v.cp
}
func (v *clearExpectBytes) exec(hit *hitImpl) error {
if err := removeSteps(hit, v.callPath()); err != nil {
return err
}
return nil
}
func (v *clearExpectBytes) Contains(value ...[]uint8) IStep {
return removeStep(v.callPath().Push("Contains", uint8SliceSliceToInterfaceSlice(value)))
}
func (v *clearExpectBytes) Equal(value ...[]uint8) IStep {
return removeStep(v.callPath().Push("Equal", uint8SliceSliceToInterfaceSlice(value)))
}
func (v *clearExpectBytes) Len() IClearExpectInt {
return newClearExpectInt(v.callPath().Push("Len", nil))
}
func (v *clearExpectBytes) NotContains(value ...[]uint8) IStep {
return removeStep(v.callPath().Push("NotContains", uint8SliceSliceToInterfaceSlice(value)))
}
func (v *clearExpectBytes) NotEqual(value ...[]uint8) IStep {
return removeStep(v.callPath().Push("NotEqual", uint8SliceSliceToInterfaceSlice(value)))
}