Skip to content

Create Record from scratch #353

@Poshi

Description

@Poshi

Hello! I'm trying to create Record objects for unit testing on some code I'm trying to develop, but I've been unable to do so.

I'm using Noodles to read BAM files and compute some simple statistics of them. In order to check that I'm counting what I need to count, the unit test would ideally get a particular Record and run it thru the stats collectors to check their behavior.
Right now, the only way I have to do that is to pre-generate as many BAM files as I need for the tests, bu it would be a lot better to be able to generate the Record objects on the fly.

So far, when trying to generate them on the fly, I hit some required private function in Noodles that stopped my efforts.
Is there any way to generate Record objects on the fly? If not, could that be implemented? Sorry if the question have an obvious solution, I'm quite new to rust and still learning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions