aa::coverage::proc_coverage_level (public)
aa::coverage::proc_coverage_level coverage
Defined in packages/acs-automated-testing/tcl/coverage-procs.tcl
Calculates the level (high, medium, low...) of proc coverage from a particular value. This proc centralizes the levels for the different values, in order to keep consistency. Current values are: <25: very_low <50: low <75: medium <100: high 100: full
- Parameters:
- coverage (required)
- The percentage of the procs covered by automated tests.
- Returns:
- A string (e.g: 'high')
- Author:
- Héctor Romojaro
- Created:
- 2019-08-28
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- aa__coverage_proc_coverage_level
Source code: if { $coverage < 25 } { return very_low } elseif { $coverage < 50 } { return low } elseif { $coverage < 75 } { return medium } elseif { $coverage < 100 } { return high } elseif { $coverage == 100 } { return full } else { return -code error "Error: Invalid coverage percentage" }XQL Not present: Generic, PostgreSQL, Oracle