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

Refactor MatchersRanges test utils #2386

Merged
merged 5 commits into from Mar 9, 2022

Conversation

schallerr
Copy link
Contributor

Description

Refactor test util classes in MatchersRanges.tests. This is preparatory work for #2319.

  • do not hard-code element type and content of mock containers
  • prefix members with m_
  • add const and non-const iterators to with_mocked_iterator_access

- do not hardcode content of containers
- prefix members with m_
- add const and non-const iterators to with_mocked_iterator_access
@horenmar
Copy link
Member

horenmar commented Mar 6, 2022

fwiw you can also just store the elements in a vector and use init-list constructor to init the types

@codecov
Copy link

codecov bot commented Mar 7, 2022

Codecov Report

Merging #2386 (f2bec2f) into devel (f9facc1) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##            devel    #2386      +/-   ##
==========================================
- Coverage   91.04%   91.03%   -0.01%     
==========================================
  Files         152      154       +2     
  Lines        7313     7290      -23     
==========================================
- Hits         6658     6636      -22     
+ Misses        655      654       -1     

@horenmar horenmar merged commit 81f612c into catchorg:devel Mar 9, 2022
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.

None yet

2 participants