Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Kolberg <[email protected]>
  • Loading branch information
amdprophet committed Apr 6, 2021
1 parent 73747d5 commit cfbc437
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions backend/etcd/zap_encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ type MockPrimitiveArrayEncoder struct {
mock.Mock
}

func (m MockPrimitiveArrayEncoder) AppendBool(v bool) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendByteString(v []byte) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendComplex64(v complex64) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendComplex128(v complex128) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendFloat32(v float32) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendFloat64(v float64) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendInt(v int) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendInt8(v int8) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendInt16(v int16) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendInt32(v int32) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendInt64(v int64) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendString(v string) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendUint(v uint) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendUint8(v uint8) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendUint16(v uint16) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendUint32(v uint32) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendUint64(v uint64) { m.Called(v) }
func (m MockPrimitiveArrayEncoder) AppendUintptr(v uintptr) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendBool(v bool) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendByteString(v []byte) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendComplex64(v complex64) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendComplex128(v complex128) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendFloat32(v float32) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendFloat64(v float64) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendInt(v int) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendInt8(v int8) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendInt16(v int16) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendInt32(v int32) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendInt64(v int64) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendString(v string) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendUint(v uint) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendUint8(v uint8) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendUint16(v uint16) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendUint32(v uint32) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendUint64(v uint64) { m.Called(v) }
func (m *MockPrimitiveArrayEncoder) AppendUintptr(v uintptr) { m.Called(v) }

func Test_sensuLevelEncoder(t *testing.T) {
type args struct {
Expand Down Expand Up @@ -88,7 +88,7 @@ func Test_sensuLevelEncoder(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
var got string

enc := MockPrimitiveArrayEncoder{}
enc := &MockPrimitiveArrayEncoder{}
enc.On("AppendString", mock.MatchedBy(func(s string) bool {
got = s
return true
Expand Down

0 comments on commit cfbc437

Please sign in to comment.