Coverage report: 80%

Files Functions Classes

coverage.py v7.8.0, created at 2025-05-02 11:48 +0700

File function statements missing excluded coverage
src/django_audit_log/__init__.py (no function) 0 0 0 100%
src/django_audit_log/admin.py ReadOnlyAdmin.has_add_permission 1 0 0 100%
src/django_audit_log/admin.py ReadOnlyAdmin.has_change_permission 1 0 0 100%
src/django_audit_log/admin.py ReadOnlyAdmin.has_delete_permission 1 0 0 100%
src/django_audit_log/admin.py BrowserTypeFilter.lookups 1 0 0 100%
src/django_audit_log/admin.py BrowserTypeFilter.queryset 22 20 0 9%
src/django_audit_log/admin.py DeviceTypeFilter.lookups 1 0 0 100%
src/django_audit_log/admin.py DeviceTypeFilter.queryset 11 9 0 18%
src/django_audit_log/admin.py AccessLogAdmin.browser_type 3 0 0 100%
src/django_audit_log/admin.py AccessLogAdmin.normalized_user_agent 5 0 0 100%
src/django_audit_log/admin.py AccessLogAdmin.changelist_view 4 0 0 100%
src/django_audit_log/admin.py AccessLogAdmin.get_user_agent_summary 68 63 0 7%
src/django_audit_log/admin.py ActivityLevelFilter.lookups 1 0 0 100%
src/django_audit_log/admin.py ActivityLevelFilter.queryset 13 11 0 15%
src/django_audit_log/admin.py MultipleIPFilter.lookups 1 0 0 100%
src/django_audit_log/admin.py MultipleIPFilter.queryset 6 4 0 33%
src/django_audit_log/admin.py UserAgentUtil.get_device_model_name 1 1 0 0%
src/django_audit_log/admin.py UserAgentUtil.normalize_user_agent 36 15 0 58%
src/django_audit_log/admin.py UserAgentUtil.categorize_user_agents 19 1 0 95%
src/django_audit_log/admin.py LogUserAdmin.get_queryset 3 0 0 100%
src/django_audit_log/admin.py LogUserAdmin.access_count 1 0 0 100%
src/django_audit_log/admin.py LogUserAdmin.ip_addresses_count 1 0 0 100%
src/django_audit_log/admin.py LogUserAdmin.last_active 3 0 0 100%
src/django_audit_log/admin.py LogUserAdmin.user_agent_stats 47 4 0 91%
src/django_audit_log/admin.py LogUserAdmin.recent_activity 18 5 0 72%
src/django_audit_log/admin.py LogUserAdmin.ip_addresses_used 10 1 0 90%
src/django_audit_log/admin.py LogUserAdmin.url_access_stats 12 2 0 83%
src/django_audit_log/admin.py LogUserAdmin.distinct_user_agents 14 1 0 93%
src/django_audit_log/admin.py LogIpAddressAdmin.get_queryset 3 0 0 100%
src/django_audit_log/admin.py LogIpAddressAdmin.user_count 1 0 0 100%
src/django_audit_log/admin.py LogIpAddressAdmin.request_count 1 0 0 100%
src/django_audit_log/admin.py LogIpAddressAdmin.user_agent_stats 30 3 0 90%
src/django_audit_log/admin.py LogUserAgentAdmin.get_queryset 3 0 0 100%
src/django_audit_log/admin.py LogUserAgentAdmin.operating_system_version 1 1 0 0%
src/django_audit_log/admin.py LogUserAgentAdmin.usage_count 1 0 0 100%
src/django_audit_log/admin.py LogUserAgentAdmin.unique_users_count 1 0 0 100%
src/django_audit_log/admin.py LogUserAgentAdmin.usage_details 18 0 0 100%
src/django_audit_log/admin.py LogUserAgentAdmin.related_users 14 1 0 93%
src/django_audit_log/admin.py (no function) 135 2 0 99%
src/django_audit_log/apps.py (no function) 4 0 0 100%
src/django_audit_log/management/__init__.py (no function) 0 0 0 100%
src/django_audit_log/middleware.py AuditLogMiddleware.__init__ 1 0 0 100%
src/django_audit_log/middleware.py AuditLogMiddleware.__call__ 3 0 0 100%
src/django_audit_log/middleware.py (no function) 6 0 0 100%
src/django_audit_log/migrations/0001_initial.py (no function) 6 0 0 100%
src/django_audit_log/migrations/0002_accesslog_user_agent.py (no function) 4 0 0 100%
src/django_audit_log/migrations/0003_alter_accesslog_data_alter_accesslog_ip_and_more.py (no function) 5 0 0 100%
src/django_audit_log/migrations/0004_alter_accesslog_user_agent_loguseragent_and_more.py (no function) 5 0 0 100%
src/django_audit_log/migrations/0005_accesslog_in_always_log_urls_and_more.py (no function) 4 0 0 100%
src/django_audit_log/migrations/0006_loguseragent_operating_system_version.py (no function) 4 0 0 100%
src/django_audit_log/migrations/0007_merge_duplicate_paths.py normalize_path 6 6 0 0%
src/django_audit_log/migrations/0007_merge_duplicate_paths.py merge_duplicate_paths 18 12 0 33%
src/django_audit_log/migrations/0007_merge_duplicate_paths.py (no function) 8 0 0 100%
src/django_audit_log/migrations/0008_alter_loguseragent_browser_and_more.py (no function) 4 0 0 100%
src/django_audit_log/migrations/__init__.py (no function) 0 0 0 100%
src/django_audit_log/models.py LogPath.normalize_path 6 0 0 100%
src/django_audit_log/models.py LogPath.from_request 2 0 0 100%
src/django_audit_log/models.py LogPath.from_referrer 10 4 0 60%
src/django_audit_log/models.py LogPath.from_response 7 0 0 100%
src/django_audit_log/models.py LogPath.__str__ 1 0 0 100%
src/django_audit_log/models.py LogSessionKey.from_request 4 0 0 100%
src/django_audit_log/models.py LogSessionKey.__str__ 1 1 0 0%
src/django_audit_log/models.py LogUser.from_request 3 0 0 100%
src/django_audit_log/models.py LogUser.__str__ 1 1 0 0%
src/django_audit_log/models.py LogIpAddress.from_request 4 0 0 100%
src/django_audit_log/models.py LogIpAddress.__str__ 1 1 0 0%
src/django_audit_log/models.py AccessLog.from_request 19 15 0 21%
src/django_audit_log/models.py AccessLog.from_request.get_data 11 11 0 0%
src/django_audit_log/models.py AccessLog._check_sampling 13 13 0 0%
src/django_audit_log/models.py AccessLog._should_log_request 1 1 0 0%
src/django_audit_log/models.py AccessLog.__str__ 2 2 0 0%
src/django_audit_log/models.py LogUserAgent.reimport_all 25 25 0 0%
src/django_audit_log/models.py LogUserAgent.from_user_agent_string 11 2 0 82%
src/django_audit_log/models.py LogUserAgent.__str__ 2 2 0 0%
src/django_audit_log/models.py UserAgentUtil.normalize_user_agent 45 8 0 82%
src/django_audit_log/models.py (no function) 115 2 0 98%
src/django_audit_log/tests.py test_stub_math 1 0 0 100%
src/django_audit_log/tests.py test_admin_pages_accessible 6 0 0 100%
src/django_audit_log/tests.py test_loguser_factory 2 0 0 100%
src/django_audit_log/tests.py test_logpath_factory 2 0 0 100%
src/django_audit_log/tests.py test_logsessionkey_factory 2 0 0 100%
src/django_audit_log/tests.py test_logipaddress_factory 2 0 0 100%
src/django_audit_log/tests.py test_loguseragent_factory 2 0 0 100%
src/django_audit_log/tests.py test_accesslog_factory 7 0 0 100%
src/django_audit_log/tests.py test_logpath_normalize_path 3 0 0 100%
src/django_audit_log/tests.py test_logpath_from_request 5 0 0 100%
src/django_audit_log/tests.py test_logpath_from_referrer 7 0 0 100%
src/django_audit_log/tests.py test_logpath_from_response 9 0 0 100%
src/django_audit_log/tests.py test_logsessionkey_from_request 8 0 0 100%
src/django_audit_log/tests.py test_loguser_from_request 11 0 0 100%
src/django_audit_log/tests.py test_logipaddress_from_request 10 0 0 100%
src/django_audit_log/tests.py test_loguseragent_from_user_agent_string 7 0 0 100%
src/django_audit_log/tests.py test_useragentutil_normalize_user_agent 13 0 0 100%
src/django_audit_log/tests.py test_readonlyadmin_permissions 6 0 0 100%
src/django_audit_log/tests.py test_accesslogadmin_browser_type 5 0 0 100%
src/django_audit_log/tests.py test_accesslogadmin_normalized_user_agent 6 0 0 100%
src/django_audit_log/tests.py test_loguseradmin_access_count 6 0 0 100%
src/django_audit_log/tests.py test_loguseradmin_ip_addresses_count 6 0 0 100%
src/django_audit_log/tests.py test_loguseradmin_last_active 10 0 0 100%
src/django_audit_log/tests.py test_loguseradmin_user_agent_stats 5 0 0 100%
src/django_audit_log/tests.py test_loguseradmin_recent_activity 5 0 0 100%
src/django_audit_log/tests.py test_loguseradmin_ip_addresses_used 5 0 0 100%
src/django_audit_log/tests.py test_loguseradmin_url_access_stats 5 0 0 100%
src/django_audit_log/tests.py test_loguseradmin_distinct_user_agents 5 0 0 100%
src/django_audit_log/tests.py test_logipaddressadmin_user_count 6 0 0 100%
src/django_audit_log/tests.py test_logipaddressadmin_request_count 6 0 0 100%
src/django_audit_log/tests.py test_logipaddressadmin_user_agent_stats 5 0 0 100%
src/django_audit_log/tests.py test_loguseragentadmin_usage_count 5 0 0 100%
src/django_audit_log/tests.py test_loguseragentadmin_unique_users_count 5 0 0 100%
src/django_audit_log/tests.py test_loguseragentadmin_usage_details 6 0 0 100%
src/django_audit_log/tests.py test_loguseragentadmin_related_users 6 0 0 100%
src/django_audit_log/tests.py (no function) 124 0 0 100%
testproject/gather/urls.py (no function) 3 0 0 100%
testproject/gather/views.py gather_admin_view 1 1 0 0%
testproject/gather/views.py (no function) 2 0 0 100%
testproject/testproject/__init__.py (no function) 0 0 0 100%
testproject/testproject/settings.py (no function) 18 0 0 100%
testproject/testproject/urls.py (no function) 3 0 0 100%
Total   1225 251 0 80%

No items found using the specified filter.