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

Function TestExit

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

Source from the content-addressed store, hash-verified

62}
63
64func TestExit(t *testing.T) {
65 n, err := defaultTestNode()
66 if err != nil {
67 t.Fatalf("defaultTestNode() failed: %v", err)
68 }
69
70 if err := n.Exit(); err != nil {
71 t.Errorf("Exit() returned an error: %v", err)
72 }
73}
74
75func TestJoinInvalid(t *testing.T) {
76 n, err := defaultTestNode()

Callers

nothing calls this directly

Calls 2

defaultTestNodeFunction · 0.85
ExitMethod · 0.80

Tested by

no test coverage detected