Lines Matching full:functions
5 """Verifies exported functions in public/*.h are in fpdf_view_c_api_test.c.
7 This script gathers a list of functions from public/*.h that contain
8 FPDF_EXPORT. It then gathers a list of functions from
42 functions = []
47 functions.append(_FindFunction(split_line[0], filename))
61 functions.append(_FindFunction(split_line[callconv_index + 1], filename))
62 return functions
67 functions = []
70 functions.extend(_GetExportsFromHeader(public_path, filename))
71 return functions
74 def _CheckSorted(functions): argument
76 for i in range(len(functions) - 1):
77 if functions[i] > functions[i + 1]:
78 unsorted_functions.add(functions[i])
79 unsorted_functions.add(functions[i + 1])
88 functions = []
92 functions.append(functions_in_file)
97 functions.append(functions_in_file)
98 return functions
101 def _FindDuplicates(functions): argument
102 return {f for f in functions if functions.count(f) > 1}
125 for functions in test_functions_per_section:
126 unsorted_functions |= _CheckSorted(functions)
135 'Found duplicate functions in public headers')
139 function for functions in test_functions_per_section
140 for function in functions
144 'Found duplicate functions in API test')
150 check = _CheckAndPrintFailures(not_tested, 'Functions not tested')
153 check = _CheckAndPrintFailures(non_existent, 'Tested functions do not exist')