(t testing.TB, qs graph.QuadStore, opts graph.Options, data ...quad.Quad)
| 40 | } |
| 41 | |
| 42 | func MakeWriter(t testing.TB, qs graph.QuadStore, opts graph.Options, data ...quad.Quad) graph.QuadWriter { |
| 43 | w, err := writer.NewSingleReplication(qs, opts) |
| 44 | require.NoError(t, err) |
| 45 | if len(data) > 0 { |
| 46 | err = w.AddQuadSet(data) |
| 47 | require.NoError(t, err) |
| 48 | } |
| 49 | return w |
| 50 | } |