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

Function TestStringStructure_StrLen

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

Source from the content-addressed store, hash-verified

72}
73
74func TestStringStructure_StrLen(t *testing.T) {
75 str, _ := initdb()
76 defer str.db.Clean()
77
78 err = str.Set("1", randkv.RandomValue(100), 0)
79 assert.Nil(t, err)
80
81 strLen, err := str.StrLen("1")
82 assert.Nil(t, err)
83 assert.Equal(t, strLen, 112)
84}
85
86func TestStringStructure_GetSet(t *testing.T) {
87 str, _ := initdb()

Callers

nothing calls this directly

Calls 5

RandomValueFunction · 0.92
initdbFunction · 0.85
SetMethod · 0.65
StrLenMethod · 0.65
CleanMethod · 0.45

Tested by

no test coverage detected