Skip to content

In snapbox, impl From<PathBuf> for Data ? #254

Open
@dbanty

Description

@dbanty

I'm working on upgrading to snapbox 0.5, and the new method of comparing an output to a file in the path seems to require more boilerplate. Instead of .stdout_matches_path(my_path), I now need to do .stdout_matches(Data::read_from(&my_path, None)).

What do you think about implementing both From<&Path> and From<PathBuf> for data to remove that extra boilerplate?

If there is another, cleaner method already, please let me know! 😁

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-snapboxArea: snapbox packageenhancementImprove the expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions