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

test: Pass containers by const reference to functors #158

Merged
merged 1 commit into from
May 11, 2020

Conversation

stotko
Copy link
Owner

@stotko stotko commented May 11, 2020

In comparison to the src code, variables are often passed by value in the test code. This may impact the performance and only works since containers perform shallow copy rather than deep copy. Pass all containers by const reference rather than by value to fix these potential performances issues and make a possible future transition to deep copy easier.

@stotko stotko added the bug label May 11, 2020
@stotko stotko added this to the 1.3.0 milestone May 11, 2020
@codecov
Copy link

codecov bot commented May 11, 2020

Codecov Report

Merging #158 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #158   +/-   ##
=======================================
  Coverage   97.65%   97.65%           
=======================================
  Files          28       28           
  Lines        1705     1705           
=======================================
  Hits         1665     1665           
  Misses         40       40           

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 93ef044...823937a. Read the comment docs.

@stotko stotko merged commit fa4be7e into master May 11, 2020
@stotko stotko deleted the test_const_reference branch May 11, 2020 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant