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.safetynet_conclusions Namespace Reference

Classes

class  CaseResult
 
class  ComparisonConclusions
 
class  ComparisonSummary
 

Functions

 PrintConclusionsDictHumanReadable (conclusions_dict, colored, key=None)
 

Variables

str FORMAT_RED = '\033[01;31m{0}\033[00m'
 
str FORMAT_GREEN = '\033[01;32m{0}\033[00m'
 
str FORMAT_MAGENTA = '\033[01;35m{0}\033[00m'
 
str FORMAT_CYAN = '\033[01;36m{0}\033[00m'
 
str FORMAT_NORMAL = '{0}'
 
str RATING_FAILURE = 'failure'
 
str RATING_REGRESSION = 'regression'
 
str RATING_IMPROVEMENT = 'improvement'
 
str RATING_NO_CHANGE = 'no_change'
 
str RATING_SMALL_CHANGE = 'small_change'
 
list RATINGS
 
dict RATING_TO_COLOR
 

Detailed Description

Classes that draw conclusions out of a comparison and represent them.

Function Documentation

◆ PrintConclusionsDictHumanReadable()

testing.tools.safetynet_conclusions.PrintConclusionsDictHumanReadable ( conclusions_dict,
colored,
key = None )
Prints a conclusions dict in a human-readable way.

Args:
  conclusions_dict: Dict to print.
  colored: Whether to color the output to highlight significant changes.
  key: String with the CaseResult dictionary key to sort the cases.

Definition at line 239 of file safetynet_conclusions.py.

References encode, and print().

+ Here is the call graph for this function:

Variable Documentation

◆ FORMAT_CYAN

str testing.tools.safetynet_conclusions.FORMAT_CYAN = '\033[01;36m{0}\033[00m'

Definition at line 11 of file safetynet_conclusions.py.

◆ FORMAT_GREEN

str testing.tools.safetynet_conclusions.FORMAT_GREEN = '\033[01;32m{0}\033[00m'

Definition at line 9 of file safetynet_conclusions.py.

◆ FORMAT_MAGENTA

str testing.tools.safetynet_conclusions.FORMAT_MAGENTA = '\033[01;35m{0}\033[00m'

Definition at line 10 of file safetynet_conclusions.py.

◆ FORMAT_NORMAL

str testing.tools.safetynet_conclusions.FORMAT_NORMAL = '{0}'

Definition at line 12 of file safetynet_conclusions.py.

◆ FORMAT_RED

str testing.tools.safetynet_conclusions.FORMAT_RED = '\033[01;31m{0}\033[00m'

Definition at line 8 of file safetynet_conclusions.py.

◆ RATING_FAILURE

str testing.tools.safetynet_conclusions.RATING_FAILURE = 'failure'

Definition at line 14 of file safetynet_conclusions.py.

◆ RATING_IMPROVEMENT

str testing.tools.safetynet_conclusions.RATING_IMPROVEMENT = 'improvement'

Definition at line 16 of file safetynet_conclusions.py.

◆ RATING_NO_CHANGE

str testing.tools.safetynet_conclusions.RATING_NO_CHANGE = 'no_change'

Definition at line 17 of file safetynet_conclusions.py.

◆ RATING_REGRESSION

str testing.tools.safetynet_conclusions.RATING_REGRESSION = 'regression'

Definition at line 15 of file safetynet_conclusions.py.

◆ RATING_SMALL_CHANGE

str testing.tools.safetynet_conclusions.RATING_SMALL_CHANGE = 'small_change'

Definition at line 18 of file safetynet_conclusions.py.

◆ RATING_TO_COLOR

dict testing.tools.safetynet_conclusions.RATING_TO_COLOR
Initial value:
1= {
2 RATING_FAILURE: FORMAT_MAGENTA,
3 RATING_REGRESSION: FORMAT_RED,
4 RATING_IMPROVEMENT: FORMAT_CYAN,
5 RATING_NO_CHANGE: FORMAT_GREEN,
6 RATING_SMALL_CHANGE: FORMAT_NORMAL,
7}

Definition at line 25 of file safetynet_conclusions.py.

◆ RATINGS

list testing.tools.safetynet_conclusions.RATINGS
Initial value:
1= [
2 RATING_FAILURE, RATING_REGRESSION, RATING_IMPROVEMENT, RATING_NO_CHANGE,
3 RATING_SMALL_CHANGE
4]

Definition at line 20 of file safetynet_conclusions.py.