############################################################################### # List of tools for testing ############################################################################### # Usage: # from bootstraparse.modules.tools import __GLk, __GL, find_*_in_file # __GLk(n) # Returns a file link n traceback objects back # __GL() # Returns a line number at current position # find_*_in_file(file) # Try to find (class, function or variable) in file and return its line number
| Function | dict |
Helper function to test existence of a list of succesive keys within a nested dictionary. :param dic: The dictionary of dictionaries to check :param args: Any number of keys to check the dictionaries for :type dic: dict | config... |
| Function | find |
Find the class in the file stream :param file_path: Path of the file :type file_path: str :param list_class_name: List of class name to find :type list_class_name: iterable :return: Dict of class found and line number :rtype: dict... |
| Function | find |
Find the function in the file stream :param file_path: Path of the file :type file_path: str :param list_function_name: List of function name to find :type list_function_name: iterable :return: Dict of function found and line number :rtype: dict... |
| Function | find |
Find the string in the file stream :param file_path: Path of the file :type file_path: str :param list_regex_to_find: List of string to find :type list_regex_to_find: list :return: Dict of string found and line number :rtype: dict... |
| Function | find |
Find the variable in the file stream :param file_path: Path of the file :type file_path: str :param list_variable_name: List of variable name to find :type list_variable_name: iterable :return: Dict of variable found and line number :rtype: dict... |
| Function | str |
Helper function to test existence within a dictionary and return a string of the values of the keys checked and wether they exist. 'arg[0]' : True or False :param dic: The nested dictionary to check :param args: Any number of keys to check successively :type dic: dict :type args: str :return: A string of the values of the keys checked and wether they exist... |
| Function | __base |
Return the path of the main module (relative to the tests) :return: Path of the main module :rtype: str |
| Function | __ |
Undocumented |
| Function | __ |
Undocumented |
| Function | __GL |
Undocumented |
| Function | __ |
Undocumented |
| Function | __module |
Return the path of the module module_name :param module_name: Name of the module :type module_name: str :return: Path of the module :rtype: str |
| Function | __prev |
Return the nth previous stack :return: Previous stack :rtype: inspect.Traceback |
Helper function to test existence of a list of succesive keys within a nested dictionary. :param dic: The dictionary of dictionaries to check :param args: Any number of keys to check the dictionaries for :type dic: dict | config.ConfigLoader :type args: str :return: A table of Booleans for every key checked.
Find the class in the file stream :param file_path: Path of the file :type file_path: str :param list_class_name: List of class name to find :type list_class_name: iterable :return: Dict of class found and line number :rtype: dict
Find the function in the file stream :param file_path: Path of the file :type file_path: str :param list_function_name: List of function name to find :type list_function_name: iterable :return: Dict of function found and line number :rtype: dict
Find the string in the file stream :param file_path: Path of the file :type file_path: str :param list_regex_to_find: List of string to find :type list_regex_to_find: list :return: Dict of string found and line number :rtype: dict
Find the variable in the file stream :param file_path: Path of the file :type file_path: str :param list_variable_name: List of variable name to find :type list_variable_name: iterable :return: Dict of variable found and line number :rtype: dict
Helper function to test existence within a dictionary and return a string of the values of the keys checked and wether they exist. 'arg[0]' : True or False :param dic: The nested dictionary to check :param args: Any number of keys to check successively :type dic: dict :type args: str :return: A string of the values of the keys checked and wether they exist. :rtype: str
Return the path of the main module (relative to the tests) :return: Path of the main module :rtype: str