test: changed function to arrow function
Convert callback functions that are anonymous
to arrow functions for better readability.
Also adjusted the this
object in places
where that was required.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines