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

Function TestJoinInvalid

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

Source from the content-addressed store, hash-verified

73}
74
75func TestJoinInvalid(t *testing.T) {
76 n, err := defaultTestNode()
77 if err != nil {
78 t.Fatalf("defaultTestNode() failed: %v", err)
79 }
80
81 others := []string{"junk:7337"}
82 if err := n.Join(others); err == nil {
83 t.Errorf("Join(%v) should have failed", others)
84 }
85}
86
87func TestJoinValid(t *testing.T) {
88 // Create two Nodes

Callers

nothing calls this directly

Calls 2

defaultTestNodeFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected