Coverage report: 81%

Files Functions Classes

coverage.py v7.6.4, created at 2024-11-09 12:06 +0100

File function statements missing excluded coverage
mpcforces_extractor\__init__.py (no function) 0 0 0 100%
mpcforces_extractor\api\config.py (no function) 13 0 0 100%
mpcforces_extractor\api\db\__init__.py (no function) 0 0 0 100%
mpcforces_extractor\api\db\database.py MPCDatabase.__init__ 4 0 0 100%
mpcforces_extractor\api\db\database.py MPCDatabase.close 2 0 0 100%
mpcforces_extractor\api\db\database.py MPCDatabase.reinitialize_db 4 4 0 0%
mpcforces_extractor\api\db\database.py MPCDatabase.populate_database 29 0 0 100%
mpcforces_extractor\api\db\database.py MPCDatabase.get_mpcs 1 0 0 100%
mpcforces_extractor\api\db\database.py MPCDatabase.get_mpc 3 0 0 100%
mpcforces_extractor\api\db\database.py MPCDatabase.get_nodes 3 0 0 100%
mpcforces_extractor\api\db\database.py MPCDatabase.get_all_nodes 3 0 0 100%
mpcforces_extractor\api\db\database.py MPCDatabase.remove_mpc 3 0 0 100%
mpcforces_extractor\api\db\database.py MPCDatabase.get_subcases 1 0 0 100%
mpcforces_extractor\api\db\database.py (no function) 18 0 0 100%
mpcforces_extractor\api\db\models.py (no function) 18 0 0 100%
mpcforces_extractor\api\db\schemas.py (no function) 6 0 0 100%
mpcforces_extractor\api\db\test_database.py get_db 25 0 0 100%
mpcforces_extractor\api\db\test_database.py test_initialize_database 2 0 0 100%
mpcforces_extractor\api\db\test_database.py test_get_mpc 4 0 0 100%
mpcforces_extractor\api\db\test_database.py test_remove_mpc 4 0 0 100%
mpcforces_extractor\api\db\test_database.py test_remove_mpc_not_exist 3 0 0 100%
mpcforces_extractor\api\db\test_database.py test_get_nodes 8 0 0 100%
mpcforces_extractor\api\db\test_database.py test_subcases 7 0 0 100%
mpcforces_extractor\api\db\test_database.py test_teardown 2 0 0 100%
mpcforces_extractor\api\db\test_database.py (no function) 23 0 0 100%
mpcforces_extractor\api\dependencies.py get_db 3 3 0 0%
mpcforces_extractor\api\dependencies.py (no function) 2 0 0 100%
mpcforces_extractor\api\main.py (no function) 15 0 0 100%
mpcforces_extractor\api\routes\database.py import_db 9 9 0 0%
mpcforces_extractor\api\routes\database.py disconnect_db 5 5 0 0%
mpcforces_extractor\api\routes\database.py (no function) 12 0 0 100%
mpcforces_extractor\api\routes\extractor.py run_extractor 19 19 0 0%
mpcforces_extractor\api\routes\extractor.py (no function) 12 0 0 100%
mpcforces_extractor\api\routes\file_upload.py upload_chunk 10 10 0 0%
mpcforces_extractor\api\routes\file_upload.py get_output_folder 1 0 0 100%
mpcforces_extractor\api\routes\file_upload.py (no function) 8 0 0 100%
mpcforces_extractor\api\routes\html_routes.py read_mpcs 1 1 0 0%
mpcforces_extractor\api\routes\html_routes.py read_nodes 1 1 0 0%
mpcforces_extractor\api\routes\html_routes.py read_root 1 1 0 0%
mpcforces_extractor\api\routes\html_routes.py (no function) 12 0 0 100%
mpcforces_extractor\api\routes\mpcs.py get_mpcs 1 1 0 0%
mpcforces_extractor\api\routes\mpcs.py get_mpc 4 4 0 0%
mpcforces_extractor\api\routes\mpcs.py remove_mpc 2 2 0 0%
mpcforces_extractor\api\routes\mpcs.py (no function) 11 0 0 100%
mpcforces_extractor\api\routes\nodes.py get_nodes 5 5 0 0%
mpcforces_extractor\api\routes\nodes.py get_all_nodes 4 4 0 0%
mpcforces_extractor\api\routes\nodes.py get_nodes_filtered 21 21 0 0%
mpcforces_extractor\api\routes\nodes.py (no function) 12 0 0 100%
mpcforces_extractor\api\routes\subcases.py get_subcases 1 1 0 0%
mpcforces_extractor\api\routes\subcases.py (no function) 7 0 0 100%
mpcforces_extractor\api\test_main.py TestRoutesFileUpload.test_get_output_folder 6 0 0 100%
mpcforces_extractor\api\test_main.py (no function) 6 0 0 100%
mpcforces_extractor\app.py open_browser 2 2 0 0%
mpcforces_extractor\app.py main 2 2 0 0%
mpcforces_extractor\app.py (no function) 9 9 0 0%
mpcforces_extractor\cli\__init__.py (no function) 0 0 0 100%
mpcforces_extractor\cli\__main__.py (no function) 8 8 0 0%
mpcforces_extractor\cli\extract.py extract 10 10 0 0%
mpcforces_extractor\cli\extract.py (no function) 7 7 0 0%
mpcforces_extractor\cli\visualize.py visualize 10 10 0 0%
mpcforces_extractor\cli\visualize.py (no function) 9 9 0 0%
mpcforces_extractor\datastructure\__init__.py (no function) 0 0 0 100%
mpcforces_extractor\datastructure\entities.py Node.__init__ 4 0 0 100%
mpcforces_extractor\datastructure\entities.py Node.add_element 2 0 0 100%
mpcforces_extractor\datastructure\entities.py Node.reset 1 0 0 100%
mpcforces_extractor\datastructure\entities.py Element1D.__init__ 5 0 0 100%
mpcforces_extractor\datastructure\entities.py Element1D.reset 1 1 0 0%
mpcforces_extractor\datastructure\entities.py Element.reset_graph 3 0 0 100%
mpcforces_extractor\datastructure\entities.py Element.__init__ 14 0 0 100%
mpcforces_extractor\datastructure\entities.py Element.__calculate_centroid 7 0 0 100%
mpcforces_extractor\datastructure\entities.py Element.get_part_id2node_ids_graph 11 0 0 100%
mpcforces_extractor\datastructure\entities.py (no function) 24 0 0 100%
mpcforces_extractor\datastructure\loads.py Moment.__init__ 4 0 0 100%
mpcforces_extractor\datastructure\loads.py Force.__init__ 4 0 0 100%
mpcforces_extractor\datastructure\loads.py (no function) 13 0 0 100%
mpcforces_extractor\datastructure\rigids.py MPC.__init__ 11 1 0 91%
mpcforces_extractor\datastructure\rigids.py MPC.reset 1 0 0 100%
mpcforces_extractor\datastructure\rigids.py MPC.get_part_id2force 15 0 0 100%
mpcforces_extractor\datastructure\rigids.py MPC.get_subcase_id2part_id2force 5 0 0 100%
mpcforces_extractor\datastructure\rigids.py (no function) 14 0 0 100%
mpcforces_extractor\datastructure\subcases.py Subcase.__init__ 4 0 0 100%
mpcforces_extractor\datastructure\subcases.py Subcase.add_force 1 0 0 100%
mpcforces_extractor\datastructure\subcases.py Subcase.get_sum_forces 8 2 0 75%
mpcforces_extractor\datastructure\subcases.py Subcase.get_subcase_by_id 5 2 0 60%
mpcforces_extractor\datastructure\subcases.py Subcase.reset 1 0 0 100%
mpcforces_extractor\datastructure\subcases.py (no function) 10 0 0 100%
mpcforces_extractor\datastructure\test_entities.py TestElement1D.test_init 5 0 0 100%
mpcforces_extractor\datastructure\test_entities.py TestNode.test_init 3 0 0 100%
mpcforces_extractor\datastructure\test_entities.py TestNode.test_add_Element 4 0 0 100%
mpcforces_extractor\datastructure\test_entities.py TestElement.test_init 8 0 0 100%
mpcforces_extractor\datastructure\test_entities.py (no function) 9 0 0 100%
mpcforces_extractor\datastructure\test_rigids.py TestRigids.test_init 8 0 0 100%
mpcforces_extractor\datastructure\test_rigids.py TestRigids.test_sum_forces_by_connected_parts 13 0 0 100%
mpcforces_extractor\datastructure\test_rigids.py (no function) 9 1 0 89%
mpcforces_extractor\force_extractor.py MPCForceExtractor.__init__ 18 9 0 50%
mpcforces_extractor\force_extractor.py MPCForceExtractor.build_fem_and_subcase_data 13 0 0 100%
mpcforces_extractor\force_extractor.py (no function) 11 0 0 100%
mpcforces_extractor\main.py main 16 16 0 0%
mpcforces_extractor\main.py (no function) 8 8 0 0%
mpcforces_extractor\reader\__init__.py (no function) 0 0 0 100%
mpcforces_extractor\reader\modelreaders.py FemFileReader.__init__ 11 0 0 100%
mpcforces_extractor\reader\modelreaders.py FemFileReader.__read_lines 6 6 0 0%
mpcforces_extractor\reader\modelreaders.py FemFileReader.__read_nodes 14 0 0 100%
mpcforces_extractor\reader\modelreaders.py FemFileReader.__node_coord_parser 7 0 0 100%
mpcforces_extractor\reader\modelreaders.py FemFileReader.split_line 5 0 0 100%
mpcforces_extractor\reader\modelreaders.py FemFileReader.create_entities 35 0 0 100%
mpcforces_extractor\reader\modelreaders.py FemFileReader.get_rigid_elements 42 0 0 100%
mpcforces_extractor\reader\modelreaders.py FemFileReader.get_loads 20 0 0 100%
mpcforces_extractor\reader\modelreaders.py (no function) 21 0 0 100%
mpcforces_extractor\reader\mpcforces_reader.py MPCForcesReader.__init__ 3 0 0 100%
mpcforces_extractor\reader\mpcforces_reader.py MPCForcesReader.__read_lines 3 3 0 0%
mpcforces_extractor\reader\mpcforces_reader.py MPCForcesReader.build_subcases 34 0 0 100%
mpcforces_extractor\reader\mpcforces_reader.py (no function) 8 0 0 100%
mpcforces_extractor\reader\test_modelreaders.py TestFemFileReader.test_init 7 0 0 100%
mpcforces_extractor\reader\test_modelreaders.py TestFemFileReader.test_split_line 9 0 0 100%
mpcforces_extractor\reader\test_modelreaders.py TestFemFileReader.test_create_entities 14 0 0 100%
mpcforces_extractor\reader\test_modelreaders.py TestFemFileReader.test_get_rigid_elements 13 0 0 100%
mpcforces_extractor\reader\test_modelreaders.py TestFemFileReader.test_get_loads 7 0 0 100%
mpcforces_extractor\reader\test_modelreaders.py (no function) 20 1 0 95%
mpcforces_extractor\reader\test_mpcforces_reader.py TestMPCForcesReader.test_forces 9 0 0 100%
mpcforces_extractor\reader\test_mpcforces_reader.py (no function) 7 0 0 100%
mpcforces_extractor\test_force_extractor.py TestFMPCForceExtractor.test_init 4 0 0 100%
mpcforces_extractor\test_force_extractor.py TestFMPCForceExtractor.test_extract_forces_and_summary 24 0 0 100%
mpcforces_extractor\test_force_extractor.py TestFMPCForceExtractor.test_visualize_tcl_commands 19 0 0 100%
mpcforces_extractor\test_force_extractor.py (no function) 20 1 0 95%
mpcforces_extractor\test_ressources\simple_model.py get_simple_model_fem 2 0 0 100%
mpcforces_extractor\test_ressources\simple_model.py get_simple_model_mpc 2 0 0 100%
mpcforces_extractor\test_ressources\simple_model.py (no function) 3 0 0 100%
mpcforces_extractor\visualization\__init__.py (no function) 0 0 0 100%
mpcforces_extractor\visualization\tcl_visualize.py VisualizerConnectedParts.__init__ 6 1 0 83%
mpcforces_extractor\visualization\tcl_visualize.py VisualizerConnectedParts.__prepare_output_folder 9 9 0 0%
mpcforces_extractor\visualization\tcl_visualize.py VisualizerConnectedParts.__transform_nodes_to_elements 14 1 0 93%
mpcforces_extractor\visualization\tcl_visualize.py VisualizerConnectedParts.output_tcl_lines_for_part_vis 11 2 0 82%
mpcforces_extractor\visualization\tcl_visualize.py (no function) 7 0 0 100%
mpcforces_extractor\writer\__init__.py (no function) 0 0 0 100%
mpcforces_extractor\writer\summary_writer.py SummaryWriter.__init__ 6 1 0 83%
mpcforces_extractor\writer\summary_writer.py SummaryWriter.add_header 8 0 0 100%
mpcforces_extractor\writer\summary_writer.py SummaryWriter.add_mpc_lines 2 0 0 100%
mpcforces_extractor\writer\summary_writer.py SummaryWriter.add_mpc_line 37 5 0 86%
mpcforces_extractor\writer\summary_writer.py SummaryWriter.write_lines 8 8 0 0%
mpcforces_extractor\writer\summary_writer.py (no function) 13 0 0 100%
Total   1217 226 0 81%

No items found using the specified filter.