Coverage report: 63%

Files Functions Classes

coverage.py v7.9.1, created at 2026-02-19 12:46 +0000

File function statements missing excluded coverage
src/cstlcore/__init__.py (no function) 2 0 0 100%
src/cstlcore/admin/__init__.py (no function) 2 0 0 100%
src/cstlcore/admin/models.py (no function) 212 0 0 100%
src/cstlcore/admin/router.py admin_status 1 1 0 0%
src/cstlcore/admin/router.py list_users 2 2 0 0%
src/cstlcore/admin/router.py get_user_admin 4 4 0 0%
src/cstlcore/admin/router.py check_admin_config 1 1 0 0%
src/cstlcore/admin/router.py is_user_admin 2 2 0 0%
src/cstlcore/admin/router.py get_dashboard_stats_endpoint 1 1 0 0%
src/cstlcore/admin/router.py get_dashboard_activity_endpoint 1 1 0 0%
src/cstlcore/admin/router.py get_dashboard_alerts_endpoint 1 1 0 0%
src/cstlcore/admin/router.py get_users_endpoint 1 1 0 0%
src/cstlcore/admin/router.py toggle_user_status_endpoint 4 4 0 0%
src/cstlcore/admin/router.py send_verification_email_endpoint 1 1 0 0%
src/cstlcore/admin/router.py get_constellations_endpoint 1 1 0 0%
src/cstlcore/admin/router.py get_permissions_endpoint 1 1 0 0%
src/cstlcore/admin/router.py update_permission_role_endpoint 4 4 0 0%
src/cstlcore/admin/router.py revoke_permission_endpoint 4 4 0 0%
src/cstlcore/admin/router.py get_analytics_endpoint 1 1 0 0%
src/cstlcore/admin/router.py get_constellation_graph_metrics_endpoint 1 1 0 0%
src/cstlcore/admin/router.py get_all_graph_metrics_endpoint 1 1 0 0%
src/cstlcore/admin/router.py (no function) 49 0 0 100%
src/cstlcore/admin/services.py compute_graph_density 3 3 0 0%
src/cstlcore/admin/services.py compute_average_degree 3 3 0 0%
src/cstlcore/admin/services.py interpret_density 7 7 0 0%
src/cstlcore/admin/services.py count_unique_undirected_edges 9 9 0 0%
src/cstlcore/admin/services.py fetch_neo4j_graph_data 11 11 0 0%
src/cstlcore/admin/services.py get_constellation_graph_metrics 10 10 0 0%
src/cstlcore/admin/services.py get_all_constellations_graph_metrics 21 21 0 0%
src/cstlcore/admin/services.py get_admin_configuration_info 1 1 0 0%
src/cstlcore/admin/services.py get_dashboard_stats 9 9 0 0%
src/cstlcore/admin/services.py get_dashboard_activity 9 9 0 0%
src/cstlcore/admin/services.py get_dashboard_alerts 6 6 0 0%
src/cstlcore/admin/services.py get_users_list 23 23 0 0%
src/cstlcore/admin/services.py toggle_user_status 8 8 0 0%
src/cstlcore/admin/services.py get_constellations_list 20 20 0 0%
src/cstlcore/admin/services.py delete_constellation_admin 6 6 0 0%
src/cstlcore/admin/services.py get_analytics_data 19 19 0 0%
src/cstlcore/admin/services.py get_permissions_list 14 14 0 0%
src/cstlcore/admin/services.py update_permission_role 21 21 0 0%
src/cstlcore/admin/services.py revoke_permission 16 16 0 0%
src/cstlcore/admin/services.py (no function) 31 0 0 100%
src/cstlcore/assets/__init__.py (no function) 0 0 0 100%
src/cstlcore/assets/models.py (no function) 44 1 0 98%
src/cstlcore/assets/router.py sanitize_filename 12 6 0 50%
src/cstlcore/assets/router.py get_all_assets 2 0 0 100%
src/cstlcore/assets/router.py search_assets 13 13 0 0%
src/cstlcore/assets/router.py get_asset 4 1 0 75%
src/cstlcore/assets/router.py get_asset_content 4 1 0 75%
src/cstlcore/assets/router.py create_asset 7 0 0 100%
src/cstlcore/assets/router.py update_asset 9 1 0 89%
src/cstlcore/assets/router.py delete_asset 6 1 0 83%
src/cstlcore/assets/router.py (no function) 29 0 0 100%
src/cstlcore/auth/__init__.py (no function) 0 0 0 100%
src/cstlcore/auth/dependencies.py get_current_user 16 7 0 56%
src/cstlcore/auth/dependencies.py is_user_admin 2 0 0 100%
src/cstlcore/auth/dependencies.py require_admin_user 4 4 0 0%
src/cstlcore/auth/dependencies.py (no function) 13 0 0 100%
src/cstlcore/auth/router.py google_login 2 2 0 0%
src/cstlcore/auth/router.py google_auth 33 33 0 0%
src/cstlcore/auth/router.py login_for_access_token 8 0 0 100%
src/cstlcore/auth/router.py register_user 14 14 0 0%
src/cstlcore/auth/router.py forgot_password 8 8 0 0%
src/cstlcore/auth/router.py reset_password 16 16 0 0%
src/cstlcore/auth/router.py (no function) 32 0 0 100%
src/cstlcore/auth/services.py send_password_reset_email 3 3 0 0%
src/cstlcore/auth/services.py (no function) 2 0 0 100%
src/cstlcore/collections/__init__.py (no function) 0 0 0 100%
src/cstlcore/collections/dependencies.py get_existing_collection 4 1 0 75%
src/cstlcore/collections/dependencies.py (no function) 6 0 0 100%
src/cstlcore/collections/models.py (no function) 34 0 0 100%
src/cstlcore/collections/router.py get_all_collections 1 0 0 100%
src/cstlcore/collections/router.py get_collection 4 1 0 75%
src/cstlcore/collections/router.py create_collection 5 0 0 100%
src/cstlcore/collections/router.py update_collection 9 1 0 89%
src/cstlcore/collections/router.py delete_collection 6 1 0 83%
src/cstlcore/collections/router.py (no function) 18 0 0 100%
src/cstlcore/constellations/__init__.py (no function) 0 0 0 100%
src/cstlcore/constellations/dependencies.py get_existing_constellation 4 1 0 75%
src/cstlcore/constellations/dependencies.py (no function) 6 0 0 100%
src/cstlcore/constellations/models.py (no function) 26 4 0 85%
src/cstlcore/constellations/router.py get_all_constellations 2 0 0 100%
src/cstlcore/constellations/router.py create_constellation 8 0 0 100%
src/cstlcore/constellations/router.py get_constellation_by_id 4 0 0 100%
src/cstlcore/constellations/router.py update_constellation 9 9 0 0%
src/cstlcore/constellations/router.py delete_constellation 5 5 0 0%
src/cstlcore/constellations/router.py (no function) 20 0 0 100%
src/cstlcore/database/__init__.py (no function) 0 0 0 100%
src/cstlcore/database/dependencies.py get_session 8 8 0 0%
src/cstlcore/database/dependencies.py (no function) 7 0 0 100%
src/cstlcore/database/engine.py create_db_and_tables 1 1 0 0%
src/cstlcore/database/engine.py (no function) 4 0 0 100%
src/cstlcore/debug/__init__.py (no function) 0 0 0 100%
src/cstlcore/debug/router.py populate 29 29 0 0%
src/cstlcore/debug/router.py (no function) 13 13 0 0%
src/cstlcore/emails/__init__.py (no function) 0 0 0 100%
src/cstlcore/emails/services.py send_email 16 16 0 0%
src/cstlcore/emails/services.py (no function) 6 0 0 100%
src/cstlcore/feedbacks/__init__.py (no function) 0 0 0 100%
src/cstlcore/feedbacks/models.py (no function) 4 0 0 100%
src/cstlcore/feedbacks/router.py send_feedback 2 2 0 0%
src/cstlcore/feedbacks/router.py (no function) 8 0 0 100%
src/cstlcore/feedbacks/services.py send_feedback_email 3 3 0 0%
src/cstlcore/feedbacks/services.py (no function) 5 0 0 100%
src/cstlcore/glossary/__init__.py (no function) 0 0 0 100%
src/cstlcore/glossary/models.py (no function) 36 1 0 97%
src/cstlcore/glossary/router.py create_glossary_term 17 17 0 0%
src/cstlcore/glossary/router.py get_glossary_terms 4 4 0 0%
src/cstlcore/glossary/router.py search_glossary_terms 15 15 0 0%
src/cstlcore/glossary/router.py get_glossary_term 5 5 0 0%
src/cstlcore/glossary/router.py update_glossary_term 18 18 0 0%
src/cstlcore/glossary/router.py delete_glossary_term 8 8 0 0%
src/cstlcore/glossary/router.py get_related_terms 11 11 0 0%
src/cstlcore/glossary/router.py (no function) 24 0 0 100%
src/cstlcore/logging.py setup_logging 9 0 0 100%
src/cstlcore/logging.py (no function) 2 0 0 100%
src/cstlcore/main.py lifespan 1 1 0 0%
src/cstlcore/main.py sqlalchemy_integrity_error_handler 1 1 0 0%
src/cstlcore/main.py health_check 1 0 0 100%
src/cstlcore/main.py main 2 2 0 0%
src/cstlcore/main.py (no function) 48 3 0 94%
src/cstlcore/maps/__init__.py (no function) 0 0 0 100%
src/cstlcore/maps/dependencies.py get_existing_map 4 1 0 75%
src/cstlcore/maps/dependencies.py (no function) 6 0 0 100%
src/cstlcore/maps/models.py (no function) 42 2 0 95%
src/cstlcore/maps/router.py get_map_tile_jpg 5 5 0 0%
src/cstlcore/maps/router.py get_map_tile_png 5 1 0 80%
src/cstlcore/maps/router.py create_map 11 3 0 73%
src/cstlcore/maps/router.py get_map 1 0 0 100%
src/cstlcore/maps/router.py get_map_base_layer 1 1 0 0%
src/cstlcore/maps/router.py delete_map 8 1 0 88%
src/cstlcore/maps/router.py update_map 6 0 0 100%
src/cstlcore/maps/router.py get_all_maps_in_constellation 3 3 0 0%
src/cstlcore/maps/router.py (no function) 31 0 0 100%
src/cstlcore/maps/services.py generate_leaflet_tiles 26 1 0 96%
src/cstlcore/maps/services.py verify_and_store_map 14 2 0 86%
src/cstlcore/maps/services.py (no function) 11 0 0 100%
src/cstlcore/me/__init__.py (no function) 0 0 0 100%
src/cstlcore/me/router.py get_me 1 0 0 100%
src/cstlcore/me/router.py get_my_memberships 1 1 0 0%
src/cstlcore/me/router.py get_my_constellations 2 0 0 100%
src/cstlcore/me/router.py get_my_constellation_access 6 6 0 0%
src/cstlcore/me/router.py (no function) 17 0 0 100%
src/cstlcore/memberships/__init__.py (no function) 0 0 0 100%
src/cstlcore/memberships/access.py has_access 4 1 0 75%
src/cstlcore/memberships/access.py require_constellation_access 7 2 0 71%
src/cstlcore/memberships/access.py (no function) 8 0 0 100%
src/cstlcore/memberships/dependencies.py require_strictly_higher_access 8 8 0 0%
src/cstlcore/memberships/dependencies.py make_collection_access_dependency 2 0 0 100%
src/cstlcore/memberships/dependencies.py make_collection_access_dependency.dependency 2 0 0 100%
src/cstlcore/memberships/dependencies.py make_constellation_access_dependency 2 0 0 100%
src/cstlcore/memberships/dependencies.py make_constellation_access_dependency.dependency 1 0 0 100%
src/cstlcore/memberships/dependencies.py make_map_access_dependency 2 0 0 100%
src/cstlcore/memberships/dependencies.py make_map_access_dependency.dependency 2 0 0 100%
src/cstlcore/memberships/dependencies.py (no function) 27 0 0 100%
src/cstlcore/memberships/models.py AccessEnum.__lt__ 4 1 0 75%
src/cstlcore/memberships/models.py AccessEnum.__eq__ 3 0 0 100%
src/cstlcore/memberships/models.py AccessEnum.__hash__ 1 0 0 100%
src/cstlcore/memberships/models.py (no function) 35 0 0 100%
src/cstlcore/memberships/router.py get_memberships 2 2 0 0%
src/cstlcore/memberships/router.py create_membership 19 19 0 0%
src/cstlcore/memberships/router.py get_constellation_members 2 2 0 0%
src/cstlcore/memberships/router.py update_member_access 10 10 0 0%
src/cstlcore/memberships/router.py delete_member 7 7 0 0%
src/cstlcore/memberships/router.py (no function) 22 0 0 100%
src/cstlcore/memberships/services.py as_member 1 1 0 0%
src/cstlcore/memberships/services.py (no function) 2 0 0 100%
src/cstlcore/models/__init__.py (no function) 12 0 0 100%
src/cstlcore/models/password_reset_tokens.py (no function) 21 1 0 95%
src/cstlcore/models/token.py (no function) 7 0 0 100%
src/cstlcore/newsletter/__init__.py (no function) 0 0 0 100%
src/cstlcore/newsletter/models.py (no function) 18 0 0 100%
src/cstlcore/newsletter/router.py send_newsletter 7 7 0 0%
src/cstlcore/newsletter/router.py unsubscribe_newsletter 8 8 0 0%
src/cstlcore/newsletter/router.py subscribe_newsletter 8 8 0 0%
src/cstlcore/newsletter/router.py get_subscribers_count 4 4 0 0%
src/cstlcore/newsletter/router.py get_subscribers_list 4 4 0 0%
src/cstlcore/newsletter/router.py (no function) 17 0 0 100%
src/cstlcore/newsletter/services.py generate_unsubscribe_token 2 2 0 0%
src/cstlcore/newsletter/services.py verify_unsubscribe_token 7 7 0 0%
src/cstlcore/newsletter/services.py send_email_newsletter 20 20 0 0%
src/cstlcore/newsletter/services.py (no function) 8 0 0 100%
src/cstlcore/security/__init__.py (no function) 0 0 0 100%
src/cstlcore/security/jwt.py create_access_token 7 1 0 86%
src/cstlcore/security/jwt.py decode_access_token 1 0 0 100%
src/cstlcore/security/jwt.py (no function) 5 0 0 100%
src/cstlcore/security/oauth.py (no function) 0 0 0 100%
src/cstlcore/security/password.py verify_password 4 0 0 100%
src/cstlcore/security/password.py get_password_hash 1 0 0 100%
src/cstlcore/security/password.py (no function) 4 0 0 100%
src/cstlcore/settings.py NewsletterConfig.validate_secret_key 3 0 0 100%
src/cstlcore/settings.py PostgresConfig.uri 2 0 0 100%
src/cstlcore/settings.py PostgresConfig.test_uri 2 0 0 100%
src/cstlcore/settings.py PostgresConfig.validate_uri 5 2 0 60%
src/cstlcore/settings.py GoogleAuthConfig.validate_client_credentials 3 0 0 100%
src/cstlcore/settings.py SMTPConfig.validate_smtp_credentials 3 0 0 100%
src/cstlcore/settings.py JWTConfig.validate_secret_key 3 1 0 67%
src/cstlcore/settings.py FileSystemConfig.ensure_directories 6 2 0 67%
src/cstlcore/settings.py AdminConfig.parse_emails 4 1 0 75%
src/cstlcore/settings.py AdminConfig.is_admin_email 1 0 0 100%
src/cstlcore/settings.py Settings.validate_allowed_origins 6 2 0 67%
src/cstlcore/settings.py Settings.set_cryptographic_keys 3 0 0 100%
src/cstlcore/settings.py (no function) 83 0 0 100%
src/cstlcore/sse/__init__.py (no function) 0 0 0 100%
src/cstlcore/sse/sse.py _notify 9 9 0 0%
src/cstlcore/sse/sse.py notify_sse 5 5 0 0%
src/cstlcore/sse/sse.py (no function) 13 13 0 0%
src/cstlcore/users/__init__.py (no function) 0 0 0 100%
src/cstlcore/users/dependencies.py get_user_by_email 4 4 0 0%
src/cstlcore/users/dependencies.py get_user_by_id 4 4 0 0%
src/cstlcore/users/dependencies.py (no function) 7 0 0 100%
src/cstlcore/users/models.py (no function) 23 2 0 91%
src/cstlcore/users/router.py get_all_users 2 0 0 100%
src/cstlcore/users/router.py get_user 4 0 0 100%
src/cstlcore/users/router.py create_user 10 0 0 100%
src/cstlcore/users/router.py (no function) 15 0 0 100%
src/cstlcore/ydocs/__init__.py (no function) 0 0 0 100%
src/cstlcore/ydocs/decode_ydoc.py get_plain_text_from_xmltext 45 45 0 0%
src/cstlcore/ydocs/decode_ydoc.py get_plain_text_content 7 7 0 0%
src/cstlcore/ydocs/decode_ydoc.py decode_ydoc 25 25 0 0%
src/cstlcore/ydocs/decode_ydoc.py (no function) 6 0 0 100%
src/cstlcore/ydocs/models.py (no function) 58 3 0 95%
src/cstlcore/ydocs/router.py get_all_ydocs 2 0 0 100%
src/cstlcore/ydocs/router.py create_ydoc 16 4 0 75%
src/cstlcore/ydocs/router.py search_ydocs_in_collection 17 17 0 0%
src/cstlcore/ydocs/router.py get_ydoc 4 1 0 75%
src/cstlcore/ydocs/router.py get_ydoc_content 6 2 0 67%
src/cstlcore/ydocs/router.py update_ydoc 17 5 0 71%
src/cstlcore/ydocs/router.py update_ydoc_content 22 8 0 64%
src/cstlcore/ydocs/router.py delete_ydoc 6 1 0 83%
src/cstlcore/ydocs/router.py get_ydocs_by_constellation 2 0 0 100%
src/cstlcore/ydocs/router.py get_constellation_word_count 44 44 0 0%
src/cstlcore/ydocs/router.py get_owned_ydocs 1 0 0 100%
src/cstlcore/ydocs/router.py (no function) 65 0 0 100%
src/cstlcore/ydocs/services.py get_ydoc_path 7 7 0 0%
src/cstlcore/ydocs/services.py ydoc_exists 6 1 0 83%
src/cstlcore/ydocs/services.py (no function) 6 0 0 100%
Total   2427 897 0 63%

No items found using the specified filter.