project_name string | class_name string | class_modifiers string | class_implements int64 | class_extends int64 | function_name string | function_body string | cyclomatic_complexity int64 | NLOC int64 | num_parameter int64 | num_token int64 | num_variable int64 | start_line int64 | end_line int64 | function_index int64 | function_params string | function_variable string | function_return_type string | function_body_line_type string | function_num_functions int64 | function_num_lines int64 | outgoing_function_count int64 | outgoing_function_names string | incoming_function_count int64 | incoming_function_names string | lexical_representation string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nasa_fprime-tools | public | public | 0 | 0 | test_LessThanEqualTo | def test_LessThanEqualTo(self):assert self.t0 <= self.t1, "0 is less than 1"assert self.t0 <= 1, "0 is less than 1"assert self.t0 <= self.t15, "0 is less than 1.5"assert self.t0 <= 1.5, "0 is less than 1.5"assert self.t0 <= self.t0, "0 is equal to 0"assert self.t0 <= 0, "0 is equal to 0" | 1 | 7 | 1 | 61 | 0 | 26 | 32 | 26 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_LessThanEqualTo) defined within the public class called public.The function start at line 26 and ends at 32. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_EqualTo | def test_EqualTo(self):assert self.t0 == self.t0, "0 is equal to 0"assert self.t0 == 0, "0 is equal to 0"assert self.t0 != self.t1, "0 is not equal to 1"assert self.t0 != 1, "0 is not equal to 1"assert self.t0 != self.t15, "0 is not equal to 1.5"assert self.t0 != 1.5, "0 is not equal to 1.5"assert self.t15 == 1.5, "1.5... | 1 | 8 | 1 | 71 | 0 | 34 | 41 | 34 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_EqualTo) defined within the public class called public.The function start at line 34 and ends at 41. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_NotEqualTo | def test_NotEqualTo(self):assert self.t0 == self.t0, "0 is not equal to 0"assert self.t0 == 0, "0 is not equal to 0"assert self.t0 != self.t1, "0 is equal to 1"assert self.t0 != 1, "0 is equal to 1"assert self.t0 != self.t15, "0 is equal to 1.5"assert self.t0 != 1.5, "0 is equal to 1.5" | 1 | 7 | 1 | 61 | 0 | 43 | 49 | 43 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_NotEqualTo) defined within the public class called public.The function start at line 43 and ends at 49. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_GreaterThan | def test_GreaterThan(self):assert self.t15 > self.t0, "1.5 is greater than 0"assert self.t15 > 0, "1.5 is greater than 0"assert self.t15 > self.t1, "1.5 is greater than 1"assert self.t15 > 1, "1.5 is greater than 1"assert self.t15 <= self.t15, "1.5 is not greater than 1.5"assert self.t15 <= 1.5, "1.5 is not greater tha... | 1 | 7 | 1 | 61 | 0 | 51 | 57 | 51 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_GreaterThan) defined within the public class called public.The function start at line 51 and ends at 57. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_GreaterThanEqualTo | def test_GreaterThanEqualTo(self):assert self.t15 >= self.t0, "1.5 is greater than 0"assert self.t15 >= 0, "1.5 is greater than 0"assert self.t15 >= self.t1, "1.5 is greater than 1"assert self.t15 >= 1, "1.5 is greater than 1"assert self.t15 >= self.t15, "1.5 is equal to 1.5"assert self.t15 >= 1.5, "1.5 is equal to 1.5... | 1 | 7 | 1 | 61 | 0 | 59 | 65 | 59 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_GreaterThanEqualTo) defined within the public class called public.The function start at line 59 and ends at 65. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_Add | def test_Add(self):# identity property of additiont1_1 = self.t1 + self.t0assert t1_1 == self.t1, "1 equals 1"assert t1_1 is not self.t1, "the two objects are not the same instance"# addition examplest5 = self.t1 + self.t1 + self.t1 + 2assert t5 == 5, "adding 3 timestamps of 1 and a literal 2 is equal to 5"t15_1 = self... | 1 | 10 | 1 | 86 | 0 | 67 | 78 | 67 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_Add) defined within the public class called public.The function start at line 67 and ends at 78. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_Subtract | def test_Subtract(self):# identity property of subtractiont1_1 = self.t1 - self.t0assert t1_1 == self.t1, "1 equals 1"assert t1_1 is not self.t1, "the two objects are not the same instance"# some subtraction examplest3 = self.t0 + 3t15_1 = t3 - 1.5assert self.t15 == t15_1, "subtracting 1.5 from three gives 1.5"t27 = t3... | 1 | 11 | 1 | 83 | 0 | 80 | 92 | 80 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_Subtract) defined within the public class called public.The function start at line 80 and ends at 92. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_Multiply | def test_Multiply(self):# identity property of subtractiont1_1 = self.t1 * self.t1assert t1_1 == self.t1, "1 equals 1"assert t1_1 is not self.t1, "the two objects are not the same instance"# some multiplication examplest5 = self.t1 * 5assert t5 == 5, "5 times 1 is 5"t6 = self.t15 * 4assert t6 == 6, "1.5 times 4 is 6"t0... | 1 | 10 | 1 | 74 | 0 | 94 | 105 | 94 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_Multiply) defined within the public class called public.The function start at line 94 and ends at 105. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_TrueDivide | def test_TrueDivide(self):# identity property of divisiont1_1 = self.t1 / self.t1assert t1_1 == self.t1, "1 equals 1"assert t1_1 is not self.t1, "the two objects are not the same instance"# some division examplest6 = self.t0 + 6t4 = t6 / 1.5assert t4 == 4, "dividing 6 by 1.5 is 4"t4 = 6 / self.t15assert t4 == 4, "divid... | 1 | 9 | 1 | 64 | 0 | 107 | 117 | 107 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_TrueDivide) defined within the public class called public.The function start at line 107 and ends at 117. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_FloorDivide | def test_FloorDivide(self):# identity property of divisiont1_1 = self.t1 // self.t1assert t1_1 == self.t1, "1 equals 1"assert t1_1 is not self.t1, "the two objects are not the same instance"# some division examplest6 = self.t0 + 6t3 = t6 // 1.7assert t3 == 3, "dividing 6 by 1.7 with floor division is 3"t3 = 5.5 // self... | 1 | 9 | 1 | 57 | 0 | 119 | 129 | 119 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_FloorDivide) defined within the public class called public.The function start at line 119 and ends at 129. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_cmake_builder | def get_cmake_builder():"""Gets a CMake builder for these testsReturns:CMakeBuilder for testing"""return fprime.fbuild.cmake.CMakeHandler() | 1 | 2 | 0 | 15 | 0 | 18 | 24 | 18 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_cmake_builder) defined within the public class called public.The function start at line 18 and ends at 24. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | get_data_dir | def get_data_dir():"""Gets directory containing test-data specific to the builder being tested. This will enable new implementers, shouldthere be any, to implement their own build-directory structure.:return:"""if type(get_cmake_builder()) is fprime.fbuild.cmake.CMakeHandler:return os.path.join(os.path.dirname(__file__... | 2 | 5 | 0 | 48 | 1 | 27 | 37 | 27 | null | ['msg'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_data_dir) defined within the public class called public.The function start at line 27 and ends at 37. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_hash_finder | def test_hash_finder():"""Tests that the hash finder works given a known builds."""local = pathlib.Path(os.path.dirname(__file__))dep_dir = local / "cmake-data" / "testbuild"builder = fprime.fbuild.builder.Build(fprime.fbuild.builder.BuildType.BUILD_NORMAL, dep_dir)builder.load(local, build_dir=dep_dir / "build-fprime-... | 1 | 11 | 0 | 87 | 3 | 40 | 54 | 40 | null | ['dep_dir', 'local', 'builder'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_hash_finder) defined within the public class called public.The function start at line 40 and ends at 54. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_needed_functions | def test_needed_functions():"""Test the needed functions for the given builder. This will ensure that the public interface to the builder isimplemented as expected."""needed_funcs = ["get_include_info","execute_known_target","get_include_locations","get_fprime_configuration",]for func in needed_funcs:assert hasattr(get... | 2 | 9 | 0 | 31 | 1 | 57 | 69 | 57 | null | ['needed_funcs'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_needed_functions) defined within the public class called public.The function start at line 57 and ends at 69. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_get_fprime_configuration | def test_get_fprime_configuration():"""Tests the given fprime configuration fetcher. Required for other portion of the system."""configs = fprime.fbuild.cmake.CMakeHandler.CMAKE_LOCATION_FIELDStest_data = {"grand-unified": ("/home/user11/fprime/Ref/..",None,"/home/user11/fprime/Ref/..",),"subdir": ("/home/user11/Proj",... | 2 | 19 | 0 | 90 | 4 | 72 | 94 | 72 | null | ['configs', 'values', 'test_data', 'build_dir'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_get_fprime_configuration) defined within the public class called public.The function start at line 72 and ends at 94. It contains 19 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_get_include_locations | def test_get_include_locations():"""Test all the include locations. This will ensure that values are properly read from a cache listing. This willsupport various other portions of the system, so debug here first."""test_data = {"grand-unified": ["/home/user11/fprime"],"subdir": ["/home/user11/Proj","/home/user11/Proj/l... | 2 | 15 | 0 | 79 | 3 | 97 | 115 | 97 | null | ['paths', 'test_data', 'build_dir'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_get_include_locations) defined within the public class called public.The function start at line 97 and ends at 115. It contains 15 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_get_include_info | def test_get_include_info():"""Tests that the include root function gets the expected value based on the path and build-directory setups."""# Test data setup, format build_dir to tuples of path, expected result. Note: None means expect Orphan exceptiontest_data = {"grand-unified": [("/home/user11/fprime/Svc/SomeComp1",... | 4 | 48 | 0 | 218 | 3 | 118 | 175 | 118 | null | ['value', 'test_data', 'build_dir'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_get_include_info) defined within the public class called public.The function start at line 118 and ends at 175. It contains 48 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_find_nearest_parent_project | def test_find_nearest_parent_project():"""This will test the ability for the system to detect valid deployment directories"""test_dir = pathlib.Path(get_data_dir())test_data = [("testbuild/subdir1/subdir2/subdir3", "testbuild/subdir1/"),("testbuild/subdir1/subdir2", "testbuild/subdir1/"),("testbuild/", "testbuild/"),("... | 3 | 17 | 0 | 112 | 5 | 178 | 198 | 178 | null | ['value', 'test_data', 'truth', 'path', 'test_dir'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_find_nearest_parent_project) defined within the public class called public.The function start at line 178 and ends at 198. It contains 17 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | temporary_symbolic_link_context | def temporary_symbolic_link_context(link_name: str):"""Context manager to create a symbolic link to 'echoer.py' in a temporary directory and add the to sys.path.This context manager is designed to facilitate testing of command-line utilities. Specifically, it:1. Creates a temporary directory.2. Generates a symbolic lin... | 5 | 26 | 1 | 200 | 7 | 27 | 87 | 27 | null | ['new_list', 'temp_dir', 'script_dir', 'results', 'target_path', 'link_path', 'faux_files'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (temporary_symbolic_link_context) defined within the public class called public.The function start at line 27 and ends at 87. It contains 26 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | assert_valid_outputs | def assert_valid_outputs(outputs, program="cmake", arguments=None, directory=None, environment=None):"""Assert that the outputs of a program invocation are valid.This function validates a list of program outputs, ensuring that the program has been invoked correctlywith expected directories, environment variables, and a... | 8 | 29 | 5 | 186 | 1 | 90 | 151 | 90 | null | ['directory'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (assert_valid_outputs) defined within the public class called public.The function start at line 90 and ends at 151. It contains 29 lines of code and it has a cyclomatic complexity of 8. It takes 5 parameters, represented as [90.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | cmake_handler | def cmake_handler():"""Fixture to initialize the CMakeHandler"""return CMakeHandler() | 1 | 2 | 0 | 9 | 0 | 155 | 157 | 155 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (cmake_handler) defined within the public class called public.The function start at line 155 and ends at 157. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_run_cmake | def test_run_cmake(cmake_handler):"""Tests the _run_cmake function of the CMakeHandler.This function verifies that the `_run_cmake` method of the `CMakeHandler`behaves as expected when provided with a basic set of arguments and a customenvironment. It ensures that the method produces the correct standard outputand stan... | 1 | 22 | 1 | 115 | 2 | 160 | 212 | 160 | null | ['environment', 'arguments'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_run_cmake) defined within the public class called public.The function start at line 160 and ends at 212. It contains 22 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_run_cmake_editable | def test_run_cmake_editable(cmake_handler):"""Tests the writeable _run_cmake function of the CMakeHandlerThis function verifies that the `_run_cmake` method of the `CMakeHandler`behaves as expected when provided with a basic set of arguments and a customenvironment. It ensures that the method produces the correct stand... | 1 | 22 | 1 | 112 | 2 | 215 | 254 | 215 | null | ['environment', 'arguments'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_run_cmake_editable) defined within the public class called public.The function start at line 215 and ends at 254. It contains 22 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | mock_execute_known_target | def mock_execute_known_target(cmake_handler,setup_callback,mock_run_cmake,mock_validate_cmake_cache,mock_get_cmake_module,**kwargs,):"""Run the nominal execution of execute_known_targetMocks out the _run_cmake, validate_cmake_cache, and get_cmake_module calls and then calls execute_known_target onthe provided cmake_han... | 4 | 31 | 6 | 149 | 7 | 260 | 313 | 260 | null | ['expected_environment', 'target', 'expected_call', 'expected_make_args', 'expected_target', 'module', 'build_dir'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mock_execute_known_target) defined within the public class called public.The function start at line 260 and ends at 313. It contains 31 lines of code and it has a cyclomatic complexity of 4. It takes 6 parameters, represented as [260.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_execute_known_valid_target | def test_execute_known_valid_target(cmake_handler):"""Test execute_known_target with a valid target"""mock_run_cmake, expected_call = mock_execute_known_target(cmake_handler, None)mock_run_cmake.assert_called_once()mock_run_cmake.assert_has_calls([expected_call]) | 1 | 4 | 1 | 29 | 0 | 316 | 320 | 316 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_execute_known_valid_target) defined within the public class called public.The function start at line 316 and ends at 320. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_refresh_and_execute_known_target_valid.extra_setup | def extra_setup(mock_run_cmake, _):"""Perform extra setup to the basic mock calls"""mock_run_cmake.side_effect = CMakeExecutionException(["No rule to make target"], ["No rule to make target"], False) | 1 | 4 | 2 | 24 | 0 | 329 | 333 | 329 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_refresh_and_execute_known_target_valid.extra_setup) defined within the public class called public.The function start at line 329 and ends at 333. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [329.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_refresh_and_execute_known_target_valid | def test_refresh_and_execute_known_target_valid(mock_cmake_refresh_cache, cmake_handler):"""Test execute_known_target triggering a cache refresh and reattempt"""def extra_setup(mock_run_cmake, _):"""Perform extra setup to the basic mock calls"""mock_run_cmake.side_effect = CMakeExecutionException(["No rule to make targ... | 1 | 10 | 2 | 43 | 0 | 324 | 340 | 324 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_refresh_and_execute_known_target_valid) defined within the public class called public.The function start at line 324 and ends at 340. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [324.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_execute_known_global_target_valid | def test_execute_known_global_target_valid(cmake_handler):"""Test execute_known_target with a valid target at global scope"""mock_run_cmake, expected_call = mock_execute_known_target(cmake_handler, None, top_target=True)mock_run_cmake.assert_called_once()mock_run_cmake.assert_has_calls([expected_call]) | 1 | 6 | 1 | 33 | 0 | 343 | 349 | 343 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_execute_known_global_target_valid) defined within the public class called public.The function start at line 343 and ends at 349. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_execute_known_cache_invalid.extra_setup | def extra_setup(_, mock_validate_cmake_cache):"""Perform extra setup to the basic mock calls"""mock_validate_cmake_cache.side_effect = CMakeInconsistentCacheException("Module", "A", "B") | 1 | 4 | 2 | 20 | 0 | 355 | 359 | 355 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_execute_known_cache_invalid.extra_setup) defined within the public class called public.The function start at line 355 and ends at 359. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [355.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_execute_known_cache_invalid | def test_execute_known_cache_invalid(cmake_handler):"""Test execute_known_target triggering an invalid cache"""def extra_setup(_, mock_validate_cmake_cache):"""Perform extra setup to the basic mock calls"""mock_validate_cmake_cache.side_effect = CMakeInconsistentCacheException("Module", "A", "B")with pytest.raises(CMak... | 1 | 10 | 1 | 36 | 0 | 352 | 369 | 352 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_execute_known_cache_invalid) defined within the public class called public.The function start at line 352 and ends at 369. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_execute_known_valid_targets_with_environment | def test_execute_known_valid_targets_with_environment(cmake_handler):"""Test execute_known_target on valid local and global targets with supplied environment"""mock_run_cmake, expected_call = mock_execute_known_target(cmake_handler, None, environment={"MY_ENV_VAR": "VALUE1"})mock_run_cmake.assert_called_once()mock_run_... | 1 | 11 | 1 | 72 | 0 | 372 | 383 | 372 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_execute_known_valid_targets_with_environment) defined within the public class called public.The function start at line 372 and ends at 383. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_execute_known_valid_targets_with_make_args | def test_execute_known_valid_targets_with_make_args(cmake_handler):"""Test execute_known_target on valid local and global targets with supplied make_argsMake args are supplied as command line arguments after a -- when CMake is called."""mock_run_cmake, expected_call = mock_execute_known_target(cmake_handler, None, make... | 1 | 11 | 1 | 72 | 0 | 386 | 400 | 386 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_execute_known_valid_targets_with_make_args) defined within the public class called public.The function start at line 386 and ends at 400. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_execute_known_valid_targets_with_cmake_args | def test_execute_known_valid_targets_with_cmake_args(cmake_handler):"""Test execute_known_target on valid local and global targets with supplied cmake_argsCMake args **are not** supplied to the cmake call, but are used only to validate the cache."""mock_run_cmake, expected_call = mock_execute_known_target(cmake_handler... | 1 | 11 | 1 | 72 | 0 | 403 | 417 | 403 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_execute_known_valid_targets_with_cmake_args) defined within the public class called public.The function start at line 403 and ends at 417. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | cmake_refresh_cache | def cmake_refresh_cache(noop_supported,cmake_handler,mock_execute_known_target,mock_is_noop_supported,**kwargs,):"""Test the CMake cache refresh callsTests that cmake_refresh_cache properly operates in calling execute_known_target under different circumstances. Thishelper assumes that this code will not do a full refre... | 2 | 21 | 5 | 81 | 0 | 422 | 448 | 422 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (cmake_refresh_cache) defined within the public class called public.The function start at line 422 and ends at 448. It contains 21 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [422.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_refresh_cache_noop | def test_refresh_cache_noop(cmake_handler):"""Test the refresh cache handler with older 'noop' target"""cmake_refresh_cache(True, cmake_handler) | 1 | 2 | 1 | 12 | 0 | 451 | 453 | 451 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_refresh_cache_noop) defined within the public class called public.The function start at line 451 and ends at 453. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_refresh_cache_refresh | def test_refresh_cache_refresh(cmake_handler):"""Test the refresh cache handler with newer 'refresh_cache' target"""cmake_refresh_cache(False, cmake_handler) | 1 | 2 | 1 | 12 | 0 | 456 | 458 | 456 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_refresh_cache_refresh) defined within the public class called public.The function start at line 456 and ends at 458. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_refresh_cache_noop_with_environment | def test_refresh_cache_noop_with_environment(cmake_handler):"""Test the refresh cache handler with older 'noop' target"""cmake_refresh_cache(True, cmake_handler, environment={"MY_ENV_VAR": "VALUE1"}) | 1 | 2 | 1 | 20 | 0 | 461 | 463 | 461 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_refresh_cache_noop_with_environment) defined within the public class called public.The function start at line 461 and ends at 463. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | generate_build | def generate_build(arguments,exists,cmake_handler,mock_run_cmake,mock_validate_source_dir,mock_touch,mock_path_exists,mock_makedirs,**kwargs,):"""Run the generate_build function with mocked dependencies.This will run a mocked version of generate_build for the purposes of testing the function. This function suppliesthe ... | 2 | 30 | 9 | 130 | 3 | 471 | 522 | 471 | null | ['expected_cmake_args', 'build_dir', 'source_dir'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (generate_build) defined within the public class called public.The function start at line 471 and ends at 522. It contains 30 lines of code and it has a cyclomatic complexity of 2. It takes 9 parameters, represented as [471.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_generate | def test_generate(cmake_handler):"""Test basic generate build callTests generate_build with no arguments, off-nominal conditions, nor environment. Delegates to the generate_build."""generate_build(({}, []), False, cmake_handler) | 1 | 2 | 1 | 20 | 0 | 525 | 530 | 525 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_generate) defined within the public class called public.The function start at line 525 and ends at 530. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_generate_with_args | def test_generate_with_args(cmake_handler):"""Test basic generate build call with supplied cmake argumentsTests generate_build with arguments but no off-nominal conditions, nor environment. Delegates to the generate_build."""generate_build(({"CMAKE_BUILD_TYPE": "Debug", "--some-flag": "some-value"},["-DCMAKE_BUILD_TYPE... | 1 | 9 | 1 | 32 | 0 | 533 | 545 | 533 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_generate_with_args) defined within the public class called public.The function start at line 533 and ends at 545. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_generate_environment | def test_generate_environment(cmake_handler):"""Test basic generate build call with supplied environmentTests generate_build with environment but no off-nominal conditions, nor arguments. Delegates to the generate_build."""generate_build(({}, []), False, cmake_handler, environment={"MY_ENV_VAR": "VALUE1"}) | 1 | 2 | 1 | 28 | 0 | 548 | 553 | 548 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_generate_environment) defined within the public class called public.The function start at line 548 and ends at 553. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_generate_exists | def test_generate_exists(cmake_handler):"""Test basic generate build call with supplied environmentTests generate_build with pre-existing directory."""generate_build(({}, []), True, cmake_handler) | 1 | 2 | 1 | 20 | 0 | 556 | 561 | 556 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_generate_exists) defined within the public class called public.The function start at line 556 and ends at 561. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_basic_enumeration | def test_basic_enumeration():"""Test basic enumeration with and without a suffix"""# Setup mock builderbuilder_mock = MagicMock()builder_mock.cmake.get_cmake_module.return_value = "TestModule"# Test without suffixenumerator = BasicBuildTargetEnumerator()context_path = ENUMERATOR_DATA_PATH / "BasicBuildTargetEnumerator"... | 1 | 9 | 0 | 56 | 3 | 19 | 31 | 19 | null | ['builder_mock', 'enumerator', 'context_path'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_basic_enumeration) defined within the public class called public.The function start at line 19 and ends at 31. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_basic_enumeration_with_suffix | def test_basic_enumeration_with_suffix():"""Test basic enumeration with a suffix"""# Setup mock builderbuilder_mock = MagicMock()builder_mock.cmake.get_cmake_module.return_value = "TestModule"# Test with suffixenumerator_suffix = BasicBuildTargetEnumerator(target_suffix="test")context_path = ENUMERATOR_DATA_PATH / "Bas... | 1 | 11 | 0 | 59 | 3 | 34 | 47 | 34 | null | ['context_path', 'builder_mock', 'enumerator_suffix'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_basic_enumeration_with_suffix) defined within the public class called public.The function start at line 34 and ends at 47. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_multi_build_target_enumerator_default | def test_multi_build_target_enumerator_default():"""Test MultiBuildTargetEnumerator with default file"""data_path = ENUMERATOR_DATA_PATH / "MultiBuildTargetEnumerator"builder_mock = MagicMock()builder_mock.get_build_cache_path.return_value = data_path# Test with default build-targets.fprime-utilenumerator = MultiBuildT... | 1 | 7 | 0 | 47 | 4 | 50 | 59 | 50 | null | ['builder_mock', 'enumerator', 'data_path', 'expected_targets'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_multi_build_target_enumerator_default) defined within the public class called public.The function start at line 50 and ends at 59. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_multi_build_target_enumerator_tests_file | def test_multi_build_target_enumerator_tests_file():"""Test MultiBuildTargetEnumerator with tests.fprime-util"""data_path = ENUMERATOR_DATA_PATH / "MultiBuildTargetEnumerator"builder_mock = MagicMock()builder_mock.get_build_cache_path.return_value = data_path# Test with tests.fprime-utiltest_enumerator = MultiBuildTarg... | 1 | 9 | 0 | 50 | 4 | 62 | 73 | 62 | null | ['builder_mock', 'expected_test_targets', 'data_path', 'test_enumerator'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_multi_build_target_enumerator_tests_file) defined within the public class called public.The function start at line 62 and ends at 73. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_multi_build_target_enumerator_fallback | def test_multi_build_target_enumerator_fallback():"""Test MultiBuildTargetEnumerator fallback"""# Test fallback by pointing to a directory without the filefallback_path = ENUMERATOR_DATA_PATH / "BasicBuildTargetEnumerator"builder_mock = MagicMock()builder_mock.get_build_cache_path.return_value = fallback_pathfail_safe_... | 1 | 13 | 0 | 67 | 4 | 76 | 90 | 76 | null | ['fallback_enumerator', 'builder_mock', 'fail_safe_mock', 'fallback_path'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_multi_build_target_enumerator_fallback) defined within the public class called public.The function start at line 76 and ends at 90. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_multi_build_target_enumerator_fallback_exception | def test_multi_build_target_enumerator_fallback_exception():"""Test MultiBuildTargetEnumerator fallback on exception"""context_path = Path("/path/to/context")builder_mock = MagicMock()builder_mock.get_build_cache_path.side_effect = MissingBuildCachePath(context_path)fail_safe_mock = MagicMock()fail_safe_mock.enumerate.... | 1 | 13 | 0 | 71 | 4 | 93 | 108 | 93 | null | ['builder_mock', 'context_path', 'fail_safe_mock', 'fallback_enumerator'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_multi_build_target_enumerator_fallback_exception) defined within the public class called public.The function start at line 93 and ends at 108. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_recursive_multi_build_target_enumerator | def test_recursive_multi_build_target_enumerator():"""Tests the recursive enumeration of targets"""root_path = ENUMERATOR_DATA_PATH / "RecursiveMultiBuildTargetEnumerator"builder_mock = MagicMock()# For our test setup, the 'build cache' is the directory itself.builder_mock.get_build_cache_path.side_effect = lambda path... | 1 | 14 | 0 | 61 | 5 | 111 | 130 | 111 | null | ['found_targets', 'root_path', 'enumerator', 'expected_targets', 'builder_mock'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_recursive_multi_build_target_enumerator) defined within the public class called public.The function start at line 111 and ends at 130. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_recursive_multi_build_target_enumerator_custom_file | def test_recursive_multi_build_target_enumerator_custom_file():"""Tests the recursive enumeration with a custom test file"""root_path = ENUMERATOR_DATA_PATH / "RecursiveMultiBuildTargetEnumerator"builder_mock = MagicMock()# For our test setup, the 'build cache' is the directory itself.builder_mock.get_build_cache_path.... | 1 | 17 | 0 | 70 | 6 | 133 | 157 | 133 | null | ['found_targets', 'root_path', 'enumerator', 'expected_targets', 'builder_mock', 'test_file_enumerator'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_recursive_multi_build_target_enumerator_custom_file) defined within the public class called public.The function start at line 133 and ends at 157. It contains 17 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_recursive_enumerator_fallback_on_file_not_found | def test_recursive_enumerator_fallback_on_file_not_found():"""Test recursive enumerator falls back when helper returns empty"""# Point to a directory that exists but does not contain target/sub-directory filespath = ENUMERATOR_DATA_PATH / "BasicBuildTargetEnumerator"builder_mock = MagicMock()builder_mock.get_build_cach... | 1 | 10 | 0 | 63 | 3 | 160 | 176 | 160 | null | ['builder_mock', 'enumerator', 'path'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_recursive_enumerator_fallback_on_file_not_found) defined within the public class called public.The function start at line 160 and ends at 176. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_specific_build_target_enumerator_constructor | def test_specific_build_target_enumerator_constructor():"""Test SpecificBuildTargetEnumerator returns constructor-provided targets"""targets = ["specific_target1", "specific_target2"]enumerator = SpecificBuildTargetEnumerator(build_targets=targets)# The builder and context path are not used by this enumeratorassert enu... | 1 | 4 | 0 | 31 | 2 | 179 | 184 | 179 | null | ['enumerator', 'targets'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_specific_build_target_enumerator_constructor) defined within the public class called public.The function start at line 179 and ends at 184. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_specific_build_target_enumerator_setter | def test_specific_build_target_enumerator_setter():"""Test SpecificBuildTargetEnumerator's setter overrides constructor targets"""initial_targets = ["initial1"]override_targets = ["override1", "override2"]enumerator = SpecificBuildTargetEnumerator(build_targets=initial_targets)assert enumerator.enumerate(None, None) ==... | 1 | 7 | 0 | 53 | 3 | 187 | 196 | 187 | null | ['override_targets', 'enumerator', 'initial_targets'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_specific_build_target_enumerator_setter) defined within the public class called public.The function start at line 187 and ends at 196. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_cli_build_target_enumerator | def test_cli_build_target_enumerator():"""Test CliBuildTargetEnumerator integrates with DesignateTargetAction"""# Reset the designees for a clean testDesignateTargetAction._DESIGNEES = []# 1. Test Registration and enumerationcli_enumerator = CliBuildTargetEnumerator()assert cli_enumerator in DesignateTargetAction._DESI... | 1 | 11 | 0 | 78 | 5 | 199 | 220 | 199 | null | ['action', 'cli_enumerator', 'namespace', 'parser_mock', 'values'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cli_build_target_enumerator) defined within the public class called public.The function start at line 199 and ends at 220. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | setUp | def setUp(self):"""Set up a temporary directory structure for testing"""# Create a temporary directory to simulate a projectself.temp_dir = tempfile.mkdtemp()self.project_root = Path(self.temp_dir) / "project_root"self.project_root.mkdir()# Create a subdirectory to simulate a Deployments directoryself.deployments_dir =... | 1 | 13 | 1 | 112 | 0 | 23 | 45 | 23 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (setUp) defined within the public class called public.The function start at line 23 and ends at 45. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | tearDown | def tearDown(self):"""Clean up temporary directory"""# Change back to the original working directoryos.chdir(self.original_cwd)# Remove the temporary directoryshutil.rmtree(self.temp_dir) | 1 | 3 | 1 | 22 | 0 | 47 | 53 | 47 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (tearDown) defined within the public class called public.The function start at line 47 and ends at 53. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_new_deployment_in_root_dir | def test_new_deployment_in_root_dir(self, mock_register, mock_cookiecutter):"""Test creating a deployment in the project root directory"""# Change to the project root directoryos.chdir(self.project_root)# Mock the build objectmock_build = MagicMock(spec=Build)mock_build.get_settings.return_value = self.project_rootmock... | 1 | 15 | 3 | 117 | 0 | 57 | 85 | 57 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_new_deployment_in_root_dir) defined within the public class called public.The function start at line 57 and ends at 85. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [57.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_new_deployment_in_subdir | def test_new_deployment_in_subdir(self, mock_register, mock_cookiecutter):"""Test creating a deployment in a subdirectory"""# Change to the Deployments directoryos.chdir(self.deployments_dir)# Mock the build objectmock_build = MagicMock(spec=Build)mock_build.get_settings.return_value = self.project_rootmock_build.cmake... | 1 | 18 | 3 | 130 | 0 | 89 | 120 | 89 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_new_deployment_in_subdir) defined within the public class called public.The function start at line 89 and ends at 120. It contains 18 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [89.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | full_path | def full_path(path):path = LOCAL_PATH / Path(path)return path.resolve() | 1 | 3 | 1 | 19 | 1 | 16 | 18 | 16 | null | ['path'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (full_path) defined within the public class called public.The function start at line 16 and ends at 18. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_settings | def test_settings():test_cases = [{"file": "settings-empty.ini","expected": {"settings_file": full_path("settings-data/settings-empty.ini"),"default_toolchain": "native","default_ut_toolchain": "native","framework_path": full_path(".."),"install_destination": full_path("settings-data/build-artifacts"),"library_location... | 2 | 133 | 0 | 583 | 3 | 24 | 157 | 24 | null | ['results', 'fp', 'test_cases'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_settings) defined within the public class called public.The function start at line 24 and ends at 157. It contains 133 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | clear_registered_targets | def clear_registered_targets():"""Fixture to clear registered targets before each test"""Target._Target__REGISTRY = {}yieldTarget._Target__REGISTRY = {} | 1 | 4 | 0 | 18 | 0 | 22 | 26 | 22 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (clear_registered_targets) defined within the public class called public.The function start at line 22 and ends at 26. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | mock_builder | def mock_builder():"""Pytest fixture for a mock builder object"""builder = MagicMock()builder.is_verbose.return_value = Falsereturn builder | 1 | 4 | 0 | 19 | 1 | 30 | 34 | 30 | null | ['builder'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mock_builder) defined within the public class called public.The function start at line 30 and ends at 34. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_register_and_get_target | def test_register_and_get_target():"""Test target registration and retrieval"""target = Target("test", "A test target", TargetScope.LOCAL)Target.register_target(target)found_target = Target.get_target("test", set())assert found_target == targetwith pytest.raises(NoSuchTargetException):Target.get_target("nonexistent", s... | 1 | 7 | 0 | 57 | 2 | 37 | 46 | 37 | null | ['target', 'found_target'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_register_and_get_target) defined within the public class called public.The function start at line 37 and ends at 46. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_composite_target_execution | def test_composite_target_execution(mock_builder):"""Test that a composite target executes its children"""child1 = MagicMock(spec=Target, scope=TargetScope.LOCAL)child2 = MagicMock(spec=Target, scope=TargetScope.LOCAL)composite = CompositeTarget([child1, child2], "composite", "", TargetScope.LOCAL)composite.execute(moc... | 1 | 7 | 1 | 85 | 3 | 49 | 58 | 49 | null | ['child2', 'child1', 'composite'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_composite_target_execution) defined within the public class called public.The function start at line 49 and ends at 58. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_build_system_target_execution | def test_build_system_target_execution(mock_builder):"""Test that BuildSystemTarget calls the build system"""target = BuildSystemTarget("build", "", TargetScope.LOCAL)target.original_context = Path(".")target.execute_one(mock_builder, "target_name", ({}, [], {}))mock_builder.execute_build_target.assert_called_once_with... | 1 | 7 | 1 | 61 | 1 | 61 | 70 | 61 | null | ['target'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_build_system_target_execution) defined within the public class called public.The function start at line 61 and ends at 70. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_enumerated_action_execution.execute_all | def execute_all(self, builder, context, args):pass# This will be mocked | 1 | 2 | 4 | 12 | 0 | 80 | 81 | 80 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_enumerated_action_execution.execute_all) defined within the public class called public.The function start at line 80 and ends at 81. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [80.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_enumerated_action_execution.any_supported | def any_supported(self, builder, context):return True | 1 | 2 | 3 | 11 | 0 | 83 | 84 | 83 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_enumerated_action_execution.any_supported) defined within the public class called public.The function start at line 83 and ends at 84. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [83.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_enumerated_action_execution | def test_enumerated_action_execution(mock_builder):"""Test that EnumeratedAction executes its enumerator and then execute_all"""mock_enumerator = MagicMock(spec=BuildTargetEnumerator)enumerated_results = ["target1", "target2"]mock_enumerator.enumerate.return_value = enumerated_resultsclass ConcreteEnumeratedAction(Enum... | 1 | 14 | 1 | 105 | 5 | 73 | 94 | 73 | null | ['action', 'args', 'enumerated_results', 'context_path', 'mock_enumerator'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_enumerated_action_execution) defined within the public class called public.The function start at line 73 and ends at 94. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_enumerated_action_is_supported.execute_all | def execute_all(self, builder, context, args):pass | 1 | 2 | 4 | 12 | 0 | 104 | 105 | 104 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_enumerated_action_is_supported.execute_all) defined within the public class called public.The function start at line 104 and ends at 105. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [104.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_enumerated_action_is_supported.any_supported | def any_supported(self, builder, context):return True# This will be mocked | 1 | 2 | 3 | 11 | 0 | 107 | 108 | 107 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_enumerated_action_is_supported.any_supported) defined within the public class called public.The function start at line 107 and ends at 108. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [107.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_enumerated_action_is_supported | def test_enumerated_action_is_supported(mock_builder):"""Test that EnumeratedAction.is_supported calls the enumerator and any_supported"""mock_enumerator = MagicMock(spec=BuildTargetEnumerator)enumerated_results = ["target1", "target2"]mock_enumerator.enumerate.return_value = enumerated_resultsclass ConcreteEnumeratedA... | 1 | 14 | 1 | 98 | 5 | 97 | 118 | 97 | null | ['action', 'enumerated_results', 'context_path', 'mock_enumerator', 'result'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_enumerated_action_is_supported) defined within the public class called public.The function start at line 97 and ends at 118. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_composite_target_is_supported | def test_composite_target_is_supported(child_supported, expected_composite_supported, mock_builder):"""Test CompositeTarget.is_supported logic"""child1 = MagicMock(spec=Target)child1.is_supported.return_value = child_supported[0]child2 = MagicMock(spec=Target)child2.is_supported.return_value = child_supported[1]composi... | 1 | 10 | 3 | 81 | 4 | 129 | 141 | 129 | null | ['child2', 'result', 'child1', 'composite'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_composite_target_is_supported) defined within the public class called public.The function start at line 129 and ends at 141. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [129.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_composite_target_option_args | def test_composite_target_option_args():"""Test CompositeTarget.option_args aggregation and deduplication"""child1 = MagicMock(spec=Target)child1.option_args.return_value = [("--opt1", "Help 1"), ("--opt2", "Help 2")]child2 = MagicMock(spec=Target)child2.option_args.return_value = [("--opt2", "Help 2"), ("--opt3", "Hel... | 1 | 11 | 0 | 115 | 4 | 144 | 157 | 144 | null | ['child2', 'child1', 'options', 'composite'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_composite_target_option_args) defined within the public class called public.The function start at line 144 and ends at 157. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_composite_target_allows_pass_args | def test_composite_target_allows_pass_args(child_allows_pass, expected_composite_allows_pass):"""Test CompositeTarget.allows_pass_args logic"""child1 = MagicMock(spec=Target)child1.allows_pass_args.return_value = child_allows_pass[0]child2 = MagicMock(spec=Target)child2.allows_pass_args.return_value = child_allows_pass... | 1 | 9 | 2 | 70 | 3 | 168 | 178 | 168 | null | ['child2', 'child1', 'composite'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_composite_target_allows_pass_args) defined within the public class called public.The function start at line 168 and ends at 178. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [168.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_composite_target_pass_handler | def test_composite_target_pass_handler():"""Test CompositeTarget.pass_handler joining"""child1 = MagicMock(spec=Target)child1.pass_handler.return_value = "handler1"child2 = MagicMock(spec=Target)child2.pass_handler.return_value = Nonechild3 = MagicMock(spec=Target)child3.pass_handler.return_value = "handler3"composite ... | 1 | 11 | 0 | 78 | 4 | 181 | 193 | 181 | null | ['child2', 'child1', 'composite', 'child3'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_composite_target_pass_handler) defined within the public class called public.The function start at line 181 and ends at 193. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | mock_build | def mock_build(tmp_path):"""Pytest fixture for a mock build object"""build = MagicMock()build.build_dir = tmp_pathbuild.get_build_cache_path.return_value = tmp_path / "cache"(tmp_path / "cache").mkdir()return build | 1 | 6 | 1 | 36 | 1 | 14 | 20 | 14 | null | ['build'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mock_build) defined within the public class called public.The function start at line 14 and ends at 20. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_init | def test_init():"""Test FppUtility initialization"""utility = FppUtility("fpp-to-dict")assert utility.utility == "fpp-to-dict"assert utility.imports_as_sources is Trueutility_no_imports = FppUtility("fpp-check", imports_as_sources=False)assert utility_no_imports.imports_as_sources is False | 1 | 6 | 0 | 39 | 2 | 23 | 30 | 23 | null | ['utility', 'utility_no_imports'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_init) defined within the public class called public.The function start at line 23 and ends at 30. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_get_locations_file | def test_get_locations_file(mock_build, tmp_path):"""Test get_locations_file successfully finds file"""expected_path = tmp_path / "locs.fpp"expected_path.touch()path = FppUtility.get_locations_file(mock_build)assert path == expected_path | 1 | 5 | 2 | 30 | 2 | 33 | 38 | 33 | null | ['expected_path', 'path'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_get_locations_file) defined within the public class called public.The function start at line 33 and ends at 38. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [33.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_get_locations_file_missing | def test_get_locations_file_missing(mock_build):"""Test get_locations_file fails when file is missing"""with pytest.raises(FppMissingSupportFiles):FppUtility.get_locations_file(mock_build) | 1 | 3 | 1 | 20 | 0 | 41 | 44 | 41 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_get_locations_file_missing) defined within the public class called public.The function start at line 41 and ends at 44. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_get_fpp_inputs | def test_get_fpp_inputs(mock_build, tmp_path):"""Test get_fpp_inputs successfully reads files"""import_list_file = tmp_path / "cache" / "fpp-import-list"source_list_file = tmp_path / "cache" / "fpp-source-list"import_list_file.write_text("A.fpp;B.fpp;")source_list_file.write_text("C.fpp;D.fpp;")imports, sources = FppUt... | 1 | 8 | 2 | 74 | 2 | 47 | 58 | 47 | null | ['import_list_file', 'source_list_file'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_get_fpp_inputs) defined within the public class called public.The function start at line 47 and ends at 58. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [47.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_get_fpp_inputs_missing | def test_get_fpp_inputs_missing(mock_build, tmp_path):"""Test get_fpp_inputs fails when a file is missing"""with pytest.raises(FppMissingSupportFiles):FppUtility.get_fpp_inputs(mock_build, tmp_path) | 1 | 3 | 2 | 24 | 0 | 61 | 64 | 61 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_get_fpp_inputs_missing) defined within the public class called public.The function start at line 61 and ends at 64. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [61.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_execute_imports_as_sources | def test_execute_imports_as_sources(mock_which, mock_run, mock_build, tmp_path):"""Test execute with imports as sources"""# Setup(tmp_path / "locs.fpp").touch()(tmp_path / "cache" / "fpp-import-list").write_text("A.fpp;B.fpp;")(tmp_path / "cache" / "fpp-source-list").write_text("C.fpp;D.fpp;")utility = FppUtility("fpp-... | 1 | 16 | 4 | 109 | 2 | 69 | 89 | 69 | null | ['utility', 'call_args'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_execute_imports_as_sources) defined within the public class called public.The function start at line 69 and ends at 89. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [69.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_execute_imports_as_flag | def test_execute_imports_as_flag(mock_which, mock_run, mock_build, tmp_path):"""Test execute with imports as -i flag"""# Setup(tmp_path / "locs.fpp").touch()(tmp_path / "cache" / "fpp-import-list").write_text("A.fpp;B.fpp;")(tmp_path / "cache" / "fpp-source-list").write_text("C.fpp;D.fpp;")utility = FppUtility("fpp-che... | 1 | 16 | 4 | 109 | 2 | 94 | 114 | 94 | null | ['utility', 'call_args'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_execute_imports_as_flag) defined within the public class called public.The function start at line 94 and ends at 114. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [94.0] and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_build_command | def test_build_command(self):pass | 1 | 2 | 1 | 6 | 0 | 12 | 13 | 12 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_build_command) defined within the public class called public.The function start at line 12 and ends at 13. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_check_command | def test_check_command(self):pass | 1 | 2 | 1 | 6 | 0 | 15 | 16 | 15 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_check_command) defined within the public class called public.The function start at line 15 and ends at 16. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_generate_command | def test_generate_command(self):pass | 1 | 2 | 1 | 6 | 0 | 18 | 19 | 18 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_generate_command) defined within the public class called public.The function start at line 18 and ends at 19. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_purge_command | def test_purge_command(self):pass | 1 | 2 | 1 | 6 | 0 | 21 | 22 | 21 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_purge_command) defined within the public class called public.The function start at line 21 and ends at 22. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_fpp_check_command | def test_fpp_check_command(self):pass | 1 | 2 | 1 | 6 | 0 | 24 | 25 | 24 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_fpp_check_command) defined within the public class called public.The function start at line 24 and ends at 25. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_visualize_command | def test_visualize_command(self):pass | 1 | 2 | 1 | 6 | 0 | 27 | 28 | 27 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_visualize_command) defined within the public class called public.The function start at line 27 and ends at 28. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_impl_command | def test_impl_command(self):pass | 1 | 2 | 1 | 6 | 0 | 30 | 31 | 30 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_impl_command) defined within the public class called public.The function start at line 30 and ends at 31. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_hash_to_file_command | def test_hash_to_file_command(self):pass | 1 | 2 | 1 | 6 | 0 | 33 | 34 | 33 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_hash_to_file_command) defined within the public class called public.The function start at line 33 and ends at 34. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_info_command | def test_info_command(self):pass | 1 | 2 | 1 | 6 | 0 | 36 | 37 | 36 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_info_command) defined within the public class called public.The function start at line 36 and ends at 37. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_new_command | def test_new_command(self):pass | 1 | 2 | 1 | 6 | 0 | 39 | 40 | 39 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_new_command) defined within the public class called public.The function start at line 39 and ends at 40. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_format_command | def test_format_command(self):pass | 1 | 2 | 1 | 6 | 0 | 42 | 43 | 42 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_format_command) defined within the public class called public.The function start at line 42 and ends at 43. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_version_check_command | def test_version_check_command(self):pass | 1 | 2 | 1 | 6 | 0 | 45 | 46 | 45 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_version_check_command) defined within the public class called public.The function start at line 45 and ends at 46. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_init | def test_init():"""Test initialization"""options = {"backup": True,"verbose": True,"quiet": False,"check": False,"validate_extensions": True,}formatter = ClangFormatter("clang-format", Path(".clang-format"), options)assert formatter is not None | 1 | 10 | 0 | 47 | 2 | 14 | 24 | 14 | null | ['options', 'formatter'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_init) defined within the public class called public.The function start at line 14 and ends at 24. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_stage_file | def test_stage_file(tmp_path):"""Test staging files for formatting"""# Create dummy filescpp_file = tmp_path / "test.cpp"cpp_file.touch()txt_file = tmp_path / "test.txt"txt_file.touch()non_existent_file = tmp_path / "does_not_exist.cpp"options = {"validate_extensions": True, "verbose": True}formatter = ClangFormatter("... | 1 | 13 | 1 | 91 | 5 | 27 | 46 | 27 | null | ['formatter', 'non_existent_file', 'txt_file', 'cpp_file', 'options'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_stage_file) defined within the public class called public.The function start at line 27 and ends at 46. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_stage_file_no_validation | def test_stage_file_no_validation(tmp_path):"""Test staging files with extension validation disabled"""# Create dummy filescpp_file = tmp_path / "test.cpp"cpp_file.touch()txt_file = tmp_path / "test.txt"txt_file.touch()options = {"validate_extensions": False}formatter = ClangFormatter("clang-format", Path(".clang-forma... | 1 | 12 | 1 | 79 | 4 | 49 | 67 | 49 | null | ['txt_file', 'cpp_file', 'options', 'formatter'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_stage_file_no_validation) defined within the public class called public.The function start at line 49 and ends at 67. It contains 12 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | test_allow_extension | def test_allow_extension(tmp_path):"""Test allowing a new extension"""txt_file = tmp_path / "test.txt"txt_file.touch()options = {"validate_extensions": True}formatter = ClangFormatter("clang-format", Path(".clang-format"), options)formatter.allow_extension(".txt")formatter.stage_file(txt_file)assert len(formatter._file... | 1 | 9 | 1 | 66 | 3 | 70 | 81 | 70 | null | ['txt_file', 'options', 'formatter'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_allow_extension) defined within the public class called public.The function start at line 70 and ends at 81. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
nasa_fprime-tools | public | public | 0 | 0 | mock_build | def mock_build():"""Pytest fixture for a mock build object"""build = MagicMock()build.settings = {}return build | 1 | 4 | 0 | 18 | 1 | 88 | 92 | 88 | null | ['build'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mock_build) defined within the public class called public.The function start at line 88 and ends at 92. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.