mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
18 lines
276 B
Go
18 lines
276 B
Go
|
package proxy
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestErrorNoData(t *testing.T) {
|
||
|
e1 := ErrNoData()
|
||
|
assert.True(t, IsNoDataErr(e1))
|
||
|
|
||
|
e2 := errors.New("foobar")
|
||
|
assert.False(t, IsNoDataErr(e2))
|
||
|
assert.False(t, IsNoDataErr(nil))
|
||
|
}
|