stotko / stdgpu

stdgpu: Efficient STL-like Data Structures on the GPU
https://stotko.github.io/stdgpu/
Apache License 2.0
1.16k stars 83 forks source link

test: Port away from reduce #291

Closed stotko closed 2 years ago

stotko commented 2 years ago

In the unit tests, the reduce function is either used for summing up a sequence of numbers to check whether every number within it is actually contained, or to compute a certain quantity of a container, e.g. number of collisions. Port away from reduce by directly checking for the values in the former case, and using std::accumulate on the host in the latter case.

Partially addresses #279

codecov[bot] commented 2 years ago

Codecov Report

Merging #291 (72f2901) into master (96391d4) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #291   +/-   ##
=======================================
  Coverage   97.45%   97.45%           
=======================================
  Files          31       31           
  Lines        2276     2276           
=======================================
  Hits         2218     2218           
  Misses         58       58           

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 96391d4...72f2901. Read the comment docs.