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

Implemented VecAssertions for referenced vectors #3

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

woshilapin
Copy link
Contributor

This is a transfer of the PR cfrancia/spectral#12 which is coming from the original project spectral. Thanks to @kirushik for the contribution of code.

/// type must be of `&Vec` with a matching lifetime.
///
/// ```rust,ignore
/// assert_that(&&vec![1, 2, 3, 4]).has_length(4);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the doc tests so it's not being ignored ? This will ensure the doc is always up to date with the actual implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks for the review.

@codecov
Copy link

codecov bot commented Oct 5, 2021

Codecov Report

Merging #3 (35856a0) into main (8262886) will decrease coverage by 0.71%.
The diff coverage is 55.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
- Coverage   96.30%   95.58%   -0.72%     
==========================================
  Files          10       10              
  Lines        1002     1020      +18     
==========================================
+ Hits          965      975      +10     
- Misses         37       45       +8     
Impacted Files Coverage Δ
src/vec.rs 79.48% <50.00%> (-20.52%) ⬇️
src/option.rs 92.72% <100.00%> (+0.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8262886...35856a0. Read the comment docs.

@oknozor
Copy link
Owner

oknozor commented Oct 5, 2021

Thanks for the PR @woshilapin , as I mentioned above you need to update the doc so I actually runs some doc-tests, also can you run cargo fmt --all and amend your commit ?

@oknozor oknozor merged commit 27b756c into oknozor:main Oct 5, 2021
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