initial port of cosmos-sdk basecli proxy

This commit is contained in:
Ethan Buchman
2017-12-11 16:37:48 -05:00
parent 2af32d6665
commit 11761d1769
11 changed files with 688 additions and 0 deletions

17
lite/proxy/errors_test.go Normal file
View File

@ -0,0 +1,17 @@
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))
}