func (suite *ReleaseStoreLibrarySuite) createObjpropResource(rel release.Release, name string, filler func(consumer objprop.Consumer)) { resource, _ := rel.NewResource(name, "") writer, _ := resource.AsSink() consumer := dosObjprop.NewConsumer(writer, suite.descriptors) filler(consumer) consumer.Finish() }
func (suite *ReleaseStoreLibrarySuite) createChunkResource(rel release.Release, name string, filler func(consumer chunk.Consumer)) { resource, _ := rel.NewResource(name, "") writer, _ := resource.AsSink() consumer := dosChunk.NewChunkConsumer(writer) filler(consumer) consumer.Finish() }