You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
276 B

  1. package proxy
  2. import (
  3. "errors"
  4. "testing"
  5. "github.com/stretchr/testify/assert"
  6. )
  7. func TestErrorNoData(t *testing.T) {
  8. e1 := ErrNoData()
  9. assert.True(t, IsNoDataErr(e1))
  10. e2 := errors.New("foobar")
  11. assert.False(t, IsNoDataErr(e2))
  12. assert.False(t, IsNoDataErr(nil))
  13. }