summaryrefslogtreecommitdiff
path: root/doc/optparse/ruby
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2024-03-22 13:53:35 -0700
committerJeremy Evans <code@jeremyevans.net>2024-03-27 07:12:35 -0700
commite4d6479730fa87fc420cfe9ae6b83206737b0db5 (patch)
tree7ecfc2a24467c85b51da44bb2c0b841d652b6d0d /doc/optparse/ruby
parentaa794cc5a237bf4b7aa8f1917fa4ed86949d71c6 (diff)
Add array/hash implicit allocation tests
These are designed to prevent allocation regressions (commits that increase the number of implicitly allocated arrays and hashes). We have already had three commits in the last couple weeks to fix allocation regressions: * 15dc3aaa311b32203d8ffb414bcf9b8e55ce5691 * aceee71c35e0b387691836e756b4e008efd84cf1 * c38878494377c94f2425a81e598260ea944ef7f3 This test suite should hopefully allow us to find such regressions in CI before commit, to avoid committing future allocation regressions. This uses assert_separately around each set of tests. Doing it for each individual check was too slow. Failures are gathered and reported at the end of the the suite as a single assertion, with the message describing all failures.
Diffstat (limited to 'doc/optparse/ruby')
0 files changed, 0 insertions, 0 deletions