Instantiate a dummy std::process:Output

Heya,

I'm trying to write a function that will process an output from a command into a custom struct for my project.

In the spirit of TDD, I'm writing a test first, that will contain a dummy output as a setup, but I'm unable to instantiate one, as it requires to create an ExitStatus, of which the implementation is hidden.

Is there a way to create such an ExitStatus out of nowhere? I'd rather not have to mock a standard function for that.

Cheers,

1 Like

Oh, good call! I'm not used to looking in the trait implementations!

Thank you so much <3

Sometimes I find it useful to search the page content for -> Self or whatever. :slight_smile:

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.