Function
IteratedStrings
(t testing.TB, qs graph.QuadStore, it graph.Iterator)
Source from the content-addressed store, hash-verified
| 179 | } |
| 180 | |
| 181 | func 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 | |
| 192 | func IteratedValues(t testing.TB, qs graph.QuadStore, it graph.Iterator) []quad.Value { |
| 193 | ctx := context.TODO() |