QtBase  v6.3.1
generator_main.py
Go to the documentation of this file.
1 
28 
29 from option_management import function_describing_options, skip_function_description, testcase_describing_options
30 from generate_testcase import generate_testcase
31 from helpers import insert_testcases_into_file
32 filename = "../tst_qtconcurrentfiltermapgenerated.cpp"
33 
34 testcases = []
35 counter = 0
36 for fo in function_describing_options():
38  continue
39 
40  if not (
41  fo["blocking"]
42  and fo["filter"]
43  # and not fo["map"]
44  and fo["reduce"]
45  and not fo["inplace"]
46  and not fo["iterators"]
47  and not fo["initialvalue"]
48  and not fo["pool"]
49  ):
50  continue
51 
52  for to in testcase_describing_options(fo):
53  print("generate test")
54  testcases.append(generate_testcase(fo, to))
55  counter += 1
56 
57 print(counter)
58 insert_testcases_into_file(filename, testcases)
def insert_testcases_into_file(filename, testcases)
Copyright (C) 2020 The Qt Company Ltd.
Definition: helpers.py:30
def skip_function_description(options)