Skip to content

Commit

Permalink
add tests for NopEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed Jul 24, 2019
1 parent 59a6ade commit a73f21d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/processor/native/encoder_test.go
Expand Up @@ -44,6 +44,14 @@ func TestNewEncoders(t *testing.T) {
suite.Run(t, new(EncoderSuite))
}

func (s *EncoderSuite) TestNopEncoder() {
nopEncoder := NopEncoder{}

data, err := nopEncoder.Encode(s.srcImage)
assert.Nil(s.T(), data)
assert.Error(s.T(), err)
}

func (s *EncoderSuite) TestEncoders_GetEncoder() {
encoders := NewEncoders(DefaultCompressionOptions)

Expand Down

0 comments on commit a73f21d

Please sign in to comment.