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

Function TestReadString

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

Source from the content-addressed store, hash-verified

128}
129
130func TestReadString(t *testing.T) {
131 have, err := ReadString(String("foo"))
132 if err != nil {
133 t.Errorf("read: %s", err)
134 }
135 if want := "foo"; have != want {
136 t.Errorf("have %q, want %q", have, want)
137 }
138}
139
140func TestReadStrings(t *testing.T) {
141 have, err := ReadStrings(Strings("foo", "bar"))

Callers

nothing calls this directly

Calls 2

ReadStringFunction · 0.70
StringFunction · 0.70

Tested by

no test coverage detected