MCPcopy
hub / github.com/cayleygraph/cayley / IteratedStrings

Function IteratedStrings

graph/graphtest/graphtest.go:181–190  ·  view source on GitHub ↗
(t testing.TB, qs graph.QuadStore, it graph.Iterator)

Source from the content-addressed store, hash-verified

179}
180
181func IteratedStrings(t testing.TB, qs graph.QuadStore, it graph.Iterator) []string {
182 ctx := context.TODO()
183 var res []string
184 for it.Next(ctx) {
185 res = append(res, quad.ToString(qs.NameOf(it.Result())))
186 }
187 require.Nil(t, it.Err())
188 sort.Strings(res)
189 return res
190}
191
192func IteratedValues(t testing.TB, qs graph.QuadStore, it graph.Iterator) []quad.Value {
193 ctx := context.TODO()

Callers 2

ExpectIteratedRawStringsFunction · 0.85
TestIteratorFunction · 0.85

Calls 4

NextMethod · 0.65
NameOfMethod · 0.65
ResultMethod · 0.65
ErrMethod · 0.65

Tested by 1

TestIteratorFunction · 0.68