unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob 1c2cc5ca5306ea8f013a9805a57f6b3199c1848f 357 bytes (raw)
$ git show v0.10.3r:test/aggregate.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
#!/usr/bin/ruby -n
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