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()

testing.tools.api_check._CheckAndPrintFailures ( failure_list,
failure_message )
protected

Definition at line 105 of file api_check.py.

References print().

Referenced by testing.tools.api_check.main().

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

◆ _CheckSorted()

testing.tools.api_check._CheckSorted ( functions)
protected

Definition at line 74 of file api_check.py.

References set.

Referenced by testing.tools.api_check.main().

+ Here is the caller graph for this function:

◆ _FindDuplicates()

testing.tools.api_check._FindDuplicates ( functions)
protected

Definition at line 101 of file api_check.py.

Referenced by testing.tools.api_check.main().

+ Here is the caller graph for this function:

◆ _FindFunction()

testing.tools.api_check._FindFunction ( function_snippet,
filename )
protected

Definition at line 30 of file api_check.py.

References testing.tools.api_check._IsValidFunctionName().

Referenced by testing.tools.api_check._GetExportsFromHeader().

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

◆ _GetExportsFromHeader()

testing.tools.api_check._GetExportsFromHeader ( dirname,
filename )
protected

Definition at line 38 of file api_check.py.

References testing.tools.api_check._FindFunction(), open(), and split().

Referenced by testing.tools.api_check._GetFunctionsFromPublicHeaders().

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

◆ _GetFunctionsFromPublicHeaders()

testing.tools.api_check._GetFunctionsFromPublicHeaders ( src_path)
protected

Definition at line 65 of file api_check.py.

References testing.tools.api_check._GetExportsFromHeader().

Referenced by testing.tools.api_check.main().

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

◆ _GetFunctionsFromTest()

testing.tools.api_check._GetFunctionsFromTest ( api_test_path)
protected

Definition at line 83 of file api_check.py.

References open().

Referenced by testing.tools.api_check.main().

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

◆ _IsValidFunctionName()

testing.tools.api_check._IsValidFunctionName ( function,
filename )
protected

Definition at line 20 of file api_check.py.

Referenced by testing.tools.api_check._FindFunction().

+ Here is the caller graph for this function:

◆ main()

testing.tools.api_check.main ( )

Definition at line 115 of file api_check.py.

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

Referenced by testing.tools.api_check.main().

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