chore(deps): replace humantime with jiff by DaniPopes · Pull Request #10395 · foundry-rs/foundry (original) (raw)

The format is the same as humantime. Also add it to the inner duration in TestResult.

Before:

{"test/Counter.t.sol:CounterTest":{"duration":"6ms 306us 765ns","test_results":{"testFuzz_SetNumber(uint256)":{"status":"Success","reason":null,"counterexample":null,"logs":[],"decoded_logs":[],"kind":{"Fuzz":{"first_case":{"calldata":"0x5c7f60d70000000000000000000000000000000000000000000000000000000000001477","gas":53570,"stipend":21216},"runs":256,"mean_gas":31965,"median_gas":32354}},"traces":[],"labeled_addresses":{},"duration":{"secs":0,"nanos":4319680},"breakpoints":{},"gas_snapshots":{}},"test_Increment()":{"status":"Success","reason":null,"counterexample":null,"logs":[],"decoded_logs":[],"kind":{"Unit":{"gas":31851}},"traces":[],"labeled_addresses":{},"duration":{"secs":0,"nanos":772251},"breakpoints":{},"gas_snapshots":{}}},"warnings":[]}}

After:

{"test/Counter.t.sol:CounterTest":{"duration":"45ms 358µs 998ns","test_results":{"testFuzz_SetNumber(uint256)":{"status":"Success","reason":null,"counterexample":null,"logs":[],"decoded_logs":[],"kind":{"Fuzz":{"first_case":{"calldata":"0x5c7f60d70000000000000000000000000000000000000000000000000000000000001a4e","gas":53570,"stipend":21216},"runs":256,"mean_gas":32043,"median_gas":32354}},"traces":[],"labeled_addresses":{},"duration":"44ms 522µs 396ns","breakpoints":{},"gas_snapshots":{}},"test_Increment()":{"status":"Success","reason":null,"counterexample":null,"logs":[],"decoded_logs":[],"kind":{"Unit":{"gas":31851}},"traces":[],"labeled_addresses":{},"duration":"282µs 411ns","breakpoints":{},"gas_snapshots":{}}},"warnings":[]}}