mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
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>
15 lines
276 B
Go
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")
|
|
}
|
|
}
|