opendp / opendp

The core library of differential privacy algorithms powering the OpenDP Project.
https://opendp.org
MIT License
284 stars 46 forks source link

Move rust tests to standalone files #1533

Closed mccalluc closed 2 weeks ago

mccalluc commented 2 weeks ago

With tests in separate files, they code they test won't need to be rebuilt as often.

Draft

mccalluc commented 2 weeks ago

This is most of it:

$ egrep 'cfg.*test' -r src -A 1 | grep 'mod.rs' | grep -v cfg | grep -v 'mod test;' | wc -l
       9
$ git checkout main
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
$ egrep 'cfg.*test' -r src -A 1 | grep 'mod.rs' | grep -v cfg | grep -v 'mod test;' | wc -l
      63

Since this touches so many files, it's likely to pick up merge conflicts ... but conversely, it might introduce merge conflicts in other PRs which are higher priority.