Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
testing.tools.api_check Namespace Reference

Functions

 _IsValidFunctionName (function, filename)
 _FindFunction (function_snippet, filename)
 _GetExportsFromHeader (dirname, filename)
 _GetFunctionsFromPublicHeaders (src_path)
 _CheckSorted (functions)
 _GetFunctionsFromTest (api_test_path)
 _FindDuplicates (functions)
 _CheckAndPrintFailures (failure_list, failure_message)
 main ()

Detailed Description

Verifies exported functions in public/*.h are in fpdf_view_c_api_test.c.

This script gathers a list of functions from public/*.h that contain
FPDF_EXPORT. It then gathers a list of functions from
fpdfsdk/fpdf_view_c_api_test.c. It then verifies both lists do not contain
duplicates, and they match each other. It also checks that the order in
fpdf_view_c_api_test.c is alphabetical within each section.

Function Documentation

◆ _CheckAndPrintFailures()

_CheckAndPrintFailures ( failure_list,
failure_message )
protected

Definition at line 105 of file api_check.py.

References print().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _CheckSorted()

_CheckSorted ( functions)
protected

Definition at line 74 of file api_check.py.

References set.

Referenced by main().

Here is the caller graph for this function:

◆ _FindDuplicates()

_FindDuplicates ( functions)
protected

Definition at line 101 of file api_check.py.

Referenced by main().

Here is the caller graph for this function:

◆ _FindFunction()

_FindFunction ( function_snippet,
filename )
protected

Definition at line 30 of file api_check.py.

References _IsValidFunctionName().

Referenced by _GetExportsFromHeader().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _GetExportsFromHeader()

_GetExportsFromHeader ( dirname,
filename )
protected

Definition at line 38 of file api_check.py.

References _FindFunction(), and open().

Referenced by _GetFunctionsFromPublicHeaders().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _GetFunctionsFromPublicHeaders()

_GetFunctionsFromPublicHeaders ( src_path)
protected

Definition at line 65 of file api_check.py.

References _GetExportsFromHeader().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _GetFunctionsFromTest()

_GetFunctionsFromTest ( api_test_path)
protected

Definition at line 83 of file api_check.py.

References open().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _IsValidFunctionName()

_IsValidFunctionName ( function,
filename )
protected

Definition at line 20 of file api_check.py.

Referenced by _FindFunction().

Here is the caller graph for this function:

◆ main()

main ( )

Definition at line 115 of file api_check.py.

References _CheckAndPrintFailures(), _CheckSorted(), _FindDuplicates(), _GetFunctionsFromPublicHeaders(), _GetFunctionsFromTest(), main(), print(), and set.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function: