Applying the lib/bats/helper-function functions throughout makes the log and log assertion tests substantially faster. On my MacBook Pro before the change:
./go test testing/log/assertions log
92 tests, 0 failures, 2 skipped
real 1m22.348s
user 0m36.324s
sys 0m42.763s
and after the change:
92 tests, 0 failures, 2 skipped
real 0m34.204s
user 0m17.075s
sys 0m15.461s
Coverage increased (+0.01%) to 95.308% when pulling 609f05614d0db5abbee809f84c03f37f6e2926bf on bats-function into 0391bc92a551aa0bf6e16b2432c2fab74964b906 on master.
Applying the
lib/bats/helper-function
functions throughout makes the log and log assertion tests substantially faster. On my MacBook Pro before the change:and after the change: