manager: add coverage pragmas to non-testable parts

The main() function and boiler-plate if __name__ == ... parts are small.
Exclude them from code coverage stats.