mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 17:22:21 +08:00

- Modified Godeps/Godeps.json by hand - [TEST] Updated welcome docs hash to sharness - [TEST] Updated contact doc - [TEST] disabled breaking test (t0080-repo refs local)
18 lines
356 B
Go
18 lines
356 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/ipfs/go-ipfs/commands"
|
|
)
|
|
|
|
func TestIsCientErr(t *testing.T) {
|
|
t.Log("Catch both pointers and values")
|
|
if !isClientError(commands.Error{Code: commands.ErrClient}) {
|
|
t.Errorf("misidentified value")
|
|
}
|
|
if !isClientError(&commands.Error{Code: commands.ErrClient}) {
|
|
t.Errorf("misidentified pointer")
|
|
}
|
|
}
|