4 my_coverage = coverage.coverage(source=[
'xboa.Hit',
'xboa.Bunch',
'xboa.Common'])
16 from numpy
import linalg
34 One test function for each app function; one test function for each module. Name of each function test is blah_test(...)
35 Helper functions are private.
36 Return value 'fail'; 'warning'; 'pass'
37 Module test function is called test_module
38 All tests are called by test_all
40 to run all tests call test_all()
42 __float_tol = Common.float_tolerance
46 print '\n================\n|| XBOA TESTS ||\n================'
47 print 'Passed ',results[0],
' tests\nFailed ',results[1],
' tests\n',results[2],
' warnings\n\n\n'
55 return (common_p+hit_p+bunch_p+system_p, common_f+hit_f+bunch_f+system_f, common_w+hit_w+bunch_w+system_w)
57 if __name__ ==
'__main__':
59 if my_coverage !=
None:
62 my_coverage.html_report()