MCPcopy Create free account
hub / github.com/dadgar/onecache / TestStartRpcServerNegativePort

Function TestStartRpcServerNegativePort

onecache/onecache_test.go:55–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

53}
54
55func TestStartRpcServerNegativePort(t *testing.T) {
56 n := &Node{}
57
58 // A zero value port allows any port binding.
59 if err := n.initRpcServer(-1); err == nil {
60 t.Error("newRpcServer(-1) should return an error")
61 }
62}
63
64func TestExit(t *testing.T) {
65 n, err := defaultTestNode()

Callers

nothing calls this directly

Calls 1

initRpcServerMethod · 0.95

Tested by

no test coverage detected