kubo/cmd/ipfs/main_test.go
Steven Allen dfe7ef4fcf gx: update go-multihash
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 13:09:51 -08:00

15 lines
276 B
Go

package main
import (
"testing"
"gx/ipfs/QmQp2a2Hhb7F6eK2A5hN8f9aJy4mtkEikL9Zj4cgB7d1dD/go-ipfs-cmdkit"
)
func TestIsCientErr(t *testing.T) {
t.Log("Only catch pointers")
if !isClientError(&cmdkit.Error{Code: cmdkit.ErrClient}) {
t.Errorf("misidentified error")
}
}