Showing 12 of 12 total issues
Function test_selector
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
def test_selector(self, args): """ Selects which test to run depending on the information coming from the args object. nstat_test_type_run variable contains information test_type + sb_emulator_name, necessary to select which test to run.
- Read upRead up
Cyclomatic complexity is too high in method test_selector. (23) Open
def test_selector(self, args): """ Selects which test to run depending on the information coming from the args object. nstat_test_type_run variable contains information test_type + sb_emulator_name, necessary to select which test to run.
- Read upRead up
- Exclude checks
Cyclomatic complexity is too high in class TestType. (8) Open
class TestType: """ Creates a TestType object """ def __init__(self, args):
- Read upRead up
- Exclude checks
Cyclomatic complexity is too high in method set_test_log_level. (6) Open
def set_test_log_level(self, args): """ Setting log level for NSTAT experiment :param args: ArgumentParser object containing user specified \
- Read upRead up
- Exclude checks
Function set_test_log_level
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def set_test_log_level(self, args): """ Setting log level for NSTAT experiment :param args: ArgumentParser object containing user specified \
- Read upRead up
Similar blocks of code found in 7 locations. Consider refactoring. Open
elif nstat_test_type_run == 'sb_active_scalability_multinet': if not args.bypass_test: logging.info('[nstat] running test: {0}'. format(nstat_test_type_run)) self.total_samples = \
- Read upRead up
Similar blocks of code found in 7 locations. Consider refactoring. Open
elif nstat_test_type_run == 'nb_active_scalability_multinet': if not args.bypass_test: logging.info('[nstat] running test: {0}'. format(nstat_test_type_run)) self.total_samples = \
- Read upRead up
Similar blocks of code found in 7 locations. Consider refactoring. Open
elif nstat_test_type_run == 'sb_active_stability_mtcbench': if not args.bypass_test: logging.info('[nstat] running test:{0}'. format(nstat_test_type_run)) self.total_samples = \
- Read upRead up
Similar blocks of code found in 7 locations. Consider refactoring. Open
if nstat_test_type_run == 'sb_active_scalability_mtcbench': if not args.bypass_test: logging.info('[nstat] running test: {0}'. format(nstat_test_type_run)) self.total_samples = \
- Read upRead up
Similar blocks of code found in 7 locations. Consider refactoring. Open
elif nstat_test_type_run == 'sb_idle_stability_multinet': if not args.bypass_test: logging.info('[nstat] running test: {0}'. format(nstat_test_type_run)) self.total_samples = \
- Read upRead up
Similar blocks of code found in 7 locations. Consider refactoring. Open
elif nstat_test_type_run == 'sb_idle_scalability_mtcbench': if not args.bypass_test: logging.info('[nstat] running test: {0}'. format(nstat_test_type_run)) self.total_samples = \
- Read upRead up
Similar blocks of code found in 7 locations. Consider refactoring. Open
elif nstat_test_type_run == 'sb_idle_scalability_multinet': if not args.bypass_test: logging.info('[nstat] running test: {0}'. format(nstat_test_type_run)) self.total_samples = \
- Read upRead up