MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / TestReadArray

Function TestReadArray

IceFireDB-PubSub/test/proto/proto_test.go:120–128  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

118}
119
120func TestReadArray(t *testing.T) {
121 have, err := ReadArray(Strings("foo", "bar"))
122 if err != nil {
123 t.Errorf("read: %s", err)
124 }
125 if want := []string{String("foo"), String("bar")}; !reflect.DeepEqual(have, want) {
126 t.Errorf("have %q, want %q", have, want)
127 }
128}
129
130func TestReadString(t *testing.T) {
131 have, err := ReadString(String("foo"))

Callers

nothing calls this directly

Calls 3

ReadArrayFunction · 0.70
StringsFunction · 0.70
StringFunction · 0.70

Tested by

no test coverage detected