MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestOpenStoreDir

Function TestOpenStoreDir

internal/utils/kvstore/store_test.go:114–126  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

112}
113
114func TestOpenStoreDir(t *testing.T) {
115 store, err := kvstore.OpenStoreDir(Tea.Root+"/data/stores", "test3")
116 if err != nil {
117 t.Fatal(err)
118 }
119 defer func() {
120 _ = store.Close()
121 }()
122
123 t.Log("opened")
124
125 _ = store
126}
127
128func TestStore_CloseTwice(t *testing.T) {
129 store, err := kvstore.OpenStore("test")

Callers

nothing calls this directly

Calls 3

OpenStoreDirFunction · 0.92
LogMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected