unicorn.git about / heads / tags Rack HTTP server for Unix and fast clients
blob 5eebbe5a60cdb8c77ba2c7cc1c2106786e7bb0a5 385 bytes (raw) $ git show v5.0.0.pre1:test/aggregate.rb # shows this blob on the CLI
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/usr/bin/ruby -n # -*- encoding: binary -*- BEGIN { $tests = $assertions = $failures = $errors = 0 } $_ =~ /(\d+) tests, (\d+) assertions, (\d+) failures, (\d+) errors/ or next $tests += $1.to_i $assertions += $2.to_i $failures += $3.to_i $errors += $4.to_i END { printf("\n%d tests, %d assertions, %d failures, %d errors\n", $tests, $assertions, $failures, $errors) }
git clone https://yhbt.net/unicorn.git