Skip to content
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

Merged
merged 4 commits into from
Oct 11, 2024
Merged

Add File module #15

merged 4 commits into from
Oct 11, 2024

Conversation

njordr
Copy link
Collaborator

@njordr njordr commented Oct 10, 2024

  • Add File API in StartedTestStep

@njordr njordr requested a review from mimir-d October 10, 2024 13:21
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 98.55072% with 2 lines in your changes missing coverage. Please review.

Project coverage is 98.5%. Comparing base (1e5b0a9) to head (0851684).
Report is 6 commits behind head on dev.

Files with missing lines Patch % Lines
src/output/step.rs 87.5% 2 Missing ⚠️
Additional details and impacted files

@mimir-d mimir-d changed the base branch from dev to fea/diagnosis_object October 10, 2024 13:54
Base automatically changed from fea/diagnosis_object to dev October 10, 2024 13:58
src/output/file.rs Outdated Show resolved Hide resolved
src/output/file.rs Outdated Show resolved Hide resolved
src/output/file.rs Outdated Show resolved Hide resolved
src/output/file.rs Outdated Show resolved Hide resolved
is_snapshot,
..Default::default()
uri,
is_snapshot: false,
Copy link
Contributor

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?

Copy link
Collaborator Author

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

///
/// 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())
Copy link
Contributor

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

Copy link
Contributor

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]>
@njordr njordr merged commit ed468d9 into dev Oct 11, 2024
12 of 13 checks passed
@njordr njordr deleted the fea/file_object branch October 11, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants