MCPcopy Create free account
hub / github.com/Kitware/VTK / main

Function main

Common/Core/Testing/Python/TestEmptyInput.py:487–525  ·  view source on GitHub ↗
(argv=None)

Source from the content-addressed store, hash-verified

485 return (True, opts)
486
487def main(argv=None):
488 global classExceptions
489 global vtkClasses
490 global classNames
491 global verbose
492
493 if argv is None:
494 argv = sys.argv
495
496 (res, opts) = ProgramOptions()
497 if opts.classnames:
498 cn = [x.strip() for x in opts.classnames.split(',')]
499 classNames = set(cn)
500 if opts.verbose:
501 verbose = opts.verbose
502
503 print('CTEST_FULL_OUTPUT (Avoid ctest truncation of output)')
504
505 # RedirectVTKMessages()
506 if classNames:
507 TestEmptyInput(classNames)
508 else:
509 classExceptions = commonExceptions.union(classLinuxExceptions)
510 classExceptions = classExceptions.union(classWindowsExceptions)
511
512 vtkClasses = GetVTKClasses()
513# filter = ['Reader', 'Writer', 'Array_I', 'Qt']
514# vtkClasses = FilterClasses(vtkClasses, filter)
515 vtkClasses = vtkClasses - classExceptions
516 TestEmptyInput(vtkClasses)
517# In Windows
518# 0-10, 10-17, 17-18, 18-23 in steps of 100 work but not if called
519# in a loop.
520# intervals = [[18,20]]# [[0,10]], [10,17], [17,18], [18,20]]
521# for j in intervals:
522# for i in range(j[0],j[1]):
523# BatchTest(vtkClasses, i, 100)
524
525 PrintResultSummary()
526
527if __name__ == '__main__':
528 sys.exit(main())

Callers 1

TestEmptyInput.pyFile · 0.70

Calls 6

ProgramOptionsFunction · 0.70
TestEmptyInputFunction · 0.70
GetVTKClassesFunction · 0.70
PrintResultSummaryFunction · 0.70
setFunction · 0.50
printFunction · 0.50

Tested by

no test coverage detected