mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 13:27:50 +08:00
15 lines
276 B
Go
15 lines
276 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"gx/ipfs/QmSNbH2A1evCCbJSDC6u3RV3GGDhgu6pRGbXHvrN89tMKf/go-ipfs-cmdkit"
|
|
)
|
|
|
|
func TestIsCientErr(t *testing.T) {
|
|
t.Log("Only catch pointers")
|
|
if !isClientError(&cmdkit.Error{Code: cmdkit.ErrClient}) {
|
|
t.Errorf("misidentified error")
|
|
}
|
|
}
|