File test_run.py
has 775 lines of code (exceeds 250 allowed). Consider refactoring.
Cyclomatic complexity is too high in method nb_active_scalability_multinet_run. (19)
def nb_active_scalability_multinet_run(self,
json_conf,
json_output,
output_dir):
""" Runs the NorthBound scalability test with idle Multinet switches
Function nb_active_scalability_multinet_run
has a Cognitive Complexity of 26 (exceeds 5 allowed). Consider refactoring.
def nb_active_scalability_multinet_run(self,
json_conf,
json_output,
output_dir):
""" Runs the NorthBound scalability test with idle Multinet switches
Cyclomatic complexity is too high in method sb_idle_stability_multinet_run. (11)
def sb_idle_stability_multinet_run(self,
json_conf,
json_output,
output_dir):
"""
Cyclomatic complexity is too high in method sb_active_scalability_multinet_run. (10)
def sb_active_scalability_multinet_run(self,
json_conf,
json_output,
output_dir):
""" Runs the SouthBound scalability test with active Multinet switches
Cyclomatic complexity is too high in method sb_idle_scalability_multinet_run. (9)
def sb_idle_scalability_multinet_run(self,
json_conf,
json_output,
output_dir):
"""
Cyclomatic complexity is too high in class TestRun. (9)
class TestRun:
"""
Creates a Test run object
"""
def __init__(self, args, json_conf, test_type):
Cyclomatic complexity is too high in method __init__. (6)
def __init__(self, args, json_conf, test_type):
"""
Initializes the appropriate test component objects according to the
test_type and the test configuration json object, in order to prepare
the test for running
Cyclomatic complexity is too high in method sb_active_stability_mtcbench_run. (6)
def sb_active_stability_mtcbench_run(self,
json_conf,
json_output,
output_dir):
"""
Cyclomatic complexity is too high in method sb_active_scalability_mtcbench_run. (6)
def sb_active_scalability_mtcbench_run(self,
json_conf,
json_output,
output_dir):
"""
Cyclomatic complexity is too high in method sb_idle_scalability_mtcbench_run. (6)
def sb_idle_scalability_mtcbench_run(self, json_conf, json_output,
output_dir):
"""
Runs the SouthBound scalability test with idle MT-Cbench switches
Function sb_idle_stability_multinet_run
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
def sb_idle_stability_multinet_run(self,
json_conf,
json_output,
output_dir):
"""
Function sb_active_scalability_multinet_run
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
def sb_active_scalability_multinet_run(self,
json_conf,
json_output,
output_dir):
""" Runs the SouthBound scalability test with active Multinet switches
Function sb_idle_scalability_multinet_run
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
def sb_idle_scalability_multinet_run(self,
json_conf,
json_output,
output_dir):
"""
Function __init__
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
def __init__(self, args, json_conf, test_type):
"""
Initializes the appropriate test component objects according to the
test_type and the test configuration json object, in order to prepare
the test for running
Similar blocks of code found in 2 locations. Consider refactoring.
def sb_active_stability_mtcbench_run(self,
json_conf,
json_output,
output_dir):
"""
Similar blocks of code found in 2 locations. Consider refactoring.
def sb_active_scalability_mtcbench_run(self,
json_conf,
json_output,
output_dir):
"""
Identical blocks of code found in 4 locations. Consider refactoring.
try:
self.of.build()
Identical blocks of code found in 4 locations. Consider refactoring.
try:
self.ctrl.flowmods_config()
Identical blocks of code found in 4 locations. Consider refactoring.
try:
global_sample_id = 0
for (self.sb_emu.topo_size,
self.sb_emu.topo_group_size,
self.sb_emu.topo_group_delay_ms,
Identical blocks of code found in 4 locations. Consider refactoring.
try:
self.ctrl.flowmods_config()
Similar blocks of code found in 3 locations. Consider refactoring.
for (self.sb_emu.threads,
self.sb_emu.switches_per_thread,
self.sb_emu.thread_creation_delay_ms,
self.sb_emu.delay_before_traffic_ms,
self.sb_emu.simulated_hosts,
Similar blocks of code found in 3 locations. Consider refactoring.
for (self.sb_emu.topo_size,
self.sb_emu.topo_type,
self.sb_emu.topo_hosts_per_switch,
self.sb_emu.topo_group_size,
self.sb_emu.topo_group_delay_ms,
Similar blocks of code found in 3 locations. Consider refactoring.
for (self.sb_emu.topo_size,
self.sb_emu.topo_group_size,
self.sb_emu.topo_group_delay_ms,
self.sb_emu.topo_hosts_per_switch,
self.sb_emu.topo_type,
There are no issues that match your filters.