MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / TestStringStructure_Del

Function TestStringStructure_Del

structure/string_test.go:46–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestStringStructure_Del(t *testing.T) {
47 str, _ := initdb()
48 defer str.db.Clean()
49
50 err = str.Set("1", randkv.RandomValue(100), 0)
51 assert.Nil(t, err)
52
53 err = str.Del("1")
54 assert.Nil(t, err)
55
56 _, err = str.Get("1")
57 assert.Equal(t, err, _const.ErrKeyNotFound)
58}
59
60func TestStringStructure_Type(t *testing.T) {
61 str, _ := initdb()

Callers

nothing calls this directly

Calls 6

RandomValueFunction · 0.92
initdbFunction · 0.85
SetMethod · 0.65
DelMethod · 0.65
GetMethod · 0.65
CleanMethod · 0.45

Tested by

no test coverage detected