Orchestrata Ultimate › Tests › Reference › generated_recovery › test_governance_monitoring
Tests reference — tests/generated_recovery/test_governance_monitoring.py
Module of tests/generated_recovery, split out because the directory page would be too large.
Prose pending.
tests/generated_recovery/test_governance_monitoring.py
source · 24 tests · 368 lines
Auto-generated tests for: governance.monitoring
Covers: governance.monitoring
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestGovernanceMonitoringRecordQueryBranches |
32 | Branch/exception tests for: governance.monitoring.GovernanceMonitoring.record_query |
| method | TestGovernanceMonitoringRecordQueryBranches.test_L158_when_cache_hit_true |
60 | Line 158: condition cache_hit is True. |
| method | TestGovernanceMonitoringRecordQueryBranches.test_L158_when_cache_hit_false |
68 | Line 158: condition cache_hit is False. |
| method | TestGovernanceMonitoringRecordQueryBranches.test_L164_when_self_redis_is_not_none_true |
76 | Line 164: condition self._redis is not None is True. |
| method | TestGovernanceMonitoringRecordQueryBranches.test_L164_when_self_redis_is_not_none_false |
84 | Line 164: condition self._redis is not None is False. |
| method | TestGovernanceMonitoringRecordQueryBranches.test_handles_Exception_L165 |
92 | Line 165: Exception handler — suppressed. |
| method | TestGovernanceMonitoringRecordQueryBranches.test_L170_when_cache_hit_true |
100 | Line 170: condition cache_hit is True. |
| method | TestGovernanceMonitoringRecordQueryBranches.test_L170_when_cache_hit_false |
108 | Line 170: condition cache_hit is False. |
| class | TestGovernanceMonitoringGetLatencyPercentilesBranches |
117 | Branch/exception tests for: governance.monitoring.GovernanceMonitoring.get_latency_percentiles |
| method | TestGovernanceMonitoringGetLatencyPercentilesBranches.test_L214_when_not_self_latencies_true |
139 | Line 214: condition not self._latencies is True. |
| method | TestGovernanceMonitoringGetLatencyPercentilesBranches.test_L214_when_not_self_latencies_false |
148 | Line 214: condition not self._latencies is False. |
| class | TestGovernanceMonitoringGetViolationRateBranches |
158 | Branch/exception tests for: governance.monitoring.GovernanceMonitoring.get_violation_rate |
| method | TestGovernanceMonitoringGetViolationRateBranches.test_L237_when_self_violations_0_true |
185 | Line 237: condition self._violations == 0 is True. |
| method | TestGovernanceMonitoringGetViolationRateBranches.test_L237_when_self_violations_0_false |
193 | Line 237: condition self._violations == 0 is False. |
| method | TestGovernanceMonitoringGetViolationRateBranches.test_L244_when_not_recent_queries_true |
201 | Line 244: condition not recent_queries is True. |
| method | TestGovernanceMonitoringGetViolationRateBranches.test_L244_when_not_recent_queries_false |
209 | Line 244: condition not recent_queries is False. |
| method | TestGovernanceMonitoringGetViolationRateBranches.test_L247_when_window_duration_0_true |
217 | Line 247: condition window_duration <= 0 is True. |
| method | TestGovernanceMonitoringGetViolationRateBranches.test_L247_when_window_duration_0_false |
225 | Line 247: condition window_duration <= 0 is False. |
| class | TestGovernanceMonitoringGetThroughputBranches |
234 | Branch/exception tests for: governance.monitoring.GovernanceMonitoring.get_throughput |
| method | TestGovernanceMonitoringGetThroughputBranches.test_L269_when_len_recent_2_true |
258 | Line 269: condition len(recent) < 2 is True. |
| method | TestGovernanceMonitoringGetThroughputBranches.test_L269_when_len_recent_2_false |
266 | Line 269: condition len(recent) < 2 is False. |
| method | TestGovernanceMonitoringGetThroughputBranches.test_L272_when_window_0_true |
274 | Line 272: condition window <= 0 is True. |
| method | TestGovernanceMonitoringGetThroughputBranches.test_L272_when_window_0_false |
282 | Line 272: condition window <= 0 is False. |
| class | TestGovernanceMonitoringRecordViolationBranches |
291 | Branch/exception tests for: governance.monitoring.GovernanceMonitoring.record_violation |
| method | TestGovernanceMonitoringRecordViolationBranches.test_L186_when_self_redis_is_not_none_true |
313 | Line 186: condition self._redis is not None is True. |
| method | TestGovernanceMonitoringRecordViolationBranches.test_L186_when_self_redis_is_not_none_false |
321 | Line 186: condition self._redis is not None is False. |
| method | TestGovernanceMonitoringRecordViolationBranches.test_handles_Exception_L187 |
329 | Line 187: Exception handler — suppressed. |
| class | TestGovernanceMonitoringGetCacheHitRateBranches |
336 | Branch/exception tests for: governance.monitoring.GovernanceMonitoring.get_cache_hit_rate |
| method | TestGovernanceMonitoringGetCacheHitRateBranches.test_L230_when_total_0_true |
354 | Line 230: condition total == 0 is True. |
| method | TestGovernanceMonitoringGetCacheHitRateBranches.test_L230_when_total_0_false |
362 | Line 230: condition total == 0 is False. |