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

Function TestStore_Twice

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

Source from the content-addressed store, hash-verified

73}
74
75func TestStore_Twice(t *testing.T) {
76 {
77 t.Log(1)
78 store, err := kvstore.OpenStore("test")
79 if err != nil {
80 t.Fatal(err)
81 }
82 _ = store.Close()
83 }
84
85 {
86 t.Log("2")
87 store, err := kvstore.OpenStore("test")
88 if err != nil {
89 t.Fatal(err)
90 }
91 defer func() {
92 _ = store.Close()
93 }()
94 }
95
96 t.Log("opened")
97}
98
99func TestStore_RawDB(t *testing.T) {
100 store, err := kvstore.OpenStore("test")

Callers

nothing calls this directly

Calls 3

OpenStoreFunction · 0.92
LogMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected