kubo/cmd/ipfs/main_test.go
Steven Allen 76e1da02a8 gx: massive update
Note: This commit is technically broken. However, I need to make a bunch of
cmds changes to make this work and I'd rather not bundle both changes into a
single commit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:27 -08:00

15 lines
276 B
Go

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