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

Function TestReadStrings

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

Source from the content-addressed store, hash-verified

138}
139
140func TestReadStrings(t *testing.T) {
141 have, err := ReadStrings(Strings("foo", "bar"))
142 if err != nil {
143 t.Errorf("read: %s", err)
144 }
145 if want := []string{"foo", "bar"}; !reflect.DeepEqual(have, want) {
146 t.Errorf("have %q, want %q", have, want)
147 }
148}
149
150func TestParse(t *testing.T) {
151 t.Run("int", func(t *testing.T) {

Callers

nothing calls this directly

Calls 2

ReadStringsFunction · 0.70
StringsFunction · 0.70

Tested by

no test coverage detected