-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add File module #15
Add File module #15
Conversation
njordr
commented
Oct 10, 2024
- Add File API in StartedTestStep
3ff4193
to
8a7540e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files |
Signed-off-by: mimir-d <[email protected]>
Signed-off-by: mimir-d <[email protected]>
Signed-off-by: mimir-d <[email protected]>
733056f
to
3632d11
Compare
is_snapshot, | ||
..Default::default() | ||
uri, | ||
is_snapshot: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happened with the ..Default::default()
? did i remove it in the branch fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, the problem is Uri that doesn't have a default
src/output/file.rs
Outdated
/// | ||
/// let uri = Uri::parse("file:///tmp/foo").unwrap(); | ||
/// let file = File::builder("name", uri) | ||
/// .is_snapshot(true) | ||
/// .description("description") | ||
/// .content_type("text/plain") | ||
/// .content_type(Mime::from_str("text/plain").unwrap()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://docs.rs/mime/latest/mime/constant.TEXT_PLAIN.html
the point was to not have arbitrary strings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to fix this before merge
Signed-off-by: Giovanni Colapinto <[email protected]>