rust/library/test/src
bors 5431404b87 Auto merge of #118548 - Enselic:bench-padding, r=thomcc,ChrisDenton
libtest: Fix padding of benchmarks run as tests

### Summary

The first commit adds regression tests for libtest padding.

The second commit fixes padding for benches run as tests and updates the blessed output of the regression tests to make it clear what effect the fix has on padding.

Closes #104092 which is **E-help-wanted** and **regression-from-stable-to-stable**

### More details

Before this fix we applied padding _before_ manually doing what `convert_benchmarks_to_tests()` does which affects padding calculations. Instead use `convert_benchmarks_to_tests()` first if applicable and then apply padding afterwards so it becomes correct.

Benches should only be padded when run as benches to make it easy to compare the benchmark numbers. Not when run as tests.

r? `@ghost` until CI passes.
2024-01-12 05:06:03 +00:00
..
formatters match on chars instead of &strs for .split() or .strip_prefix() 2023-07-23 10:13:41 +02:00
helpers Move RandomState and DefaultHasher into std::hash, but don't export for now 2023-11-02 20:35:20 -04:00
stats mv std libs to library/ 2020-07-27 19:51:13 -05:00
term remove redundant imports 2023-12-10 10:56:22 +08:00
bench.rs Do not panic when a test function returns Result::Err. 2022-09-16 14:36:00 +00:00
cli.rs libtest: Improve error when missing -Zunstable-options 2023-05-24 11:18:20 -05:00
console.rs add StaticBenchAsTestFn and DynBenchAsTestFn to convert benches to tests 2023-05-26 14:57:38 +02:00
event.rs Do fewer passes and generally be more efficient when filtering tests 2022-10-27 21:34:56 -04:00
lib.rs libtest: Fix padding of benchmarks run as tests 2023-12-07 19:24:58 +01:00
options.rs derive Default trait for compiletest::common::Config 2023-05-20 14:40:46 +03:00
stats.rs Fix naming format of IEEE 754 standard 2022-09-11 04:13:33 +02:00
term.rs WinConsole::new is not actually fallible 2022-10-21 12:18:33 +02:00
test_result.rs Fix a few clippy lints in libtest 2023-01-03 18:55:03 +00:00
tests.rs remove redundant imports 2023-12-10 10:56:22 +08:00
time.rs Fix uninlined_format_args in libtest 2022-12-19 08:58:40 +01:00
types.rs remove repetitive words 2023-07-31 16:13:02 +08:00