Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aliviahossain/Disease-prediction
/ functions
Functions
597 in github.com/aliviahossain/Disease-prediction
⨍
Functions
597
◇
Types & classes
52
↳
Endpoints
60
Function
test_bayesian_survival_zero_division
()
tests/test_calculator.py:52
Method
test_below_threshold_is_insufficient
(self)
backend/tests/test_uncertainty_handler.py:58
Function
test_bmi_calculation_handles_zero_height
()
backend/tests/test_profile_validation.py:252
Method
test_boundary_conditions
(self)
backend/tests/test_calculator.py:52
Function
test_calculate_posterior_basic
(calc)
tests/test_calculator.py:64
Function
test_calculate_posterior_invalid_prior
(calc)
tests/test_calculator.py:92
Function
test_calculate_posterior_non_numeric
(calc)
tests/test_calculator.py:97
Function
test_calculate_posterior_risk_high
(calc)
tests/test_calculator.py:80
Function
test_calculate_posterior_risk_low
(calc)
tests/test_calculator.py:70
Function
test_calculate_posterior_risk_medium
(calc)
tests/test_calculator.py:75
Function
test_calculate_posterior_shift_magnitude
(calc)
tests/test_calculator.py:85
Function
test_calculate_with_test_result_legacy_fields
(calc)
tests/test_calculator.py:112
Function
test_calculate_with_test_result_negative
(calc)
tests/test_calculator.py:107
Function
test_calculate_with_test_result_positive
(calc)
tests/test_calculator.py:102
Function
test_clean_prediction_payload_accepts_comma_separated_symptoms
()
backend/tests/test_preprocessing.py:45
Function
test_clean_prediction_payload_normalizes_and_deduplicates_symptoms
()
backend/tests/test_preprocessing.py:20
Function
test_clean_prediction_payload_rejects_invalid_values
(payload, error)
backend/tests/test_preprocessing.py:72
Method
test_clear_all_only_affects_caller
(self, app, client, make_user)
backend/tests/test_patient_history.py:322
Function
test_clear_history_unauthenticated
(client)
tests/test_history_routes.py:47
Method
test_confidence_preserved_in_result
(self)
backend/tests/test_uncertainty_handler.py:86
Function
test_csrf_token_present_on_auth_page
Auth page must render csrf_token hidden input in both login and signup forms.
backend/tests/test_csrf.py:39
Function
test_csrf_token_present_on_profile_page
Profile page must render a csrf_token hidden input.
backend/tests/test_csrf.py:46
Function
test_custom_disease_calculation
Test custom disease calculation endpoint
backend/tests/test_integration.py:50
Function
test_custom_disease_high_probabilities
(client)
backend/tests/test_integration.py:246
Function
test_custom_disease_high_sensitivity
(client)
backend/tests/test_integration.py:190
Function
test_custom_disease_high_specificity
(client)
backend/tests/test_integration.py:180
Function
test_custom_disease_invalid_types
(client)
backend/tests/test_integration.py:79
Function
test_custom_disease_low_probabilities
(client)
backend/tests/test_integration.py:223
Function
test_custom_disease_mid_range
(client)
backend/tests/test_integration.py:200
Function
test_custom_disease_missing_fields
(client)
backend/tests/test_integration.py:59
Function
test_custom_disease_out_of_bounds
(client)
backend/tests/test_integration.py:97
Function
test_custom_disease_random_values
(client)
backend/tests/test_integration.py:124
Function
test_custom_disease_typical_cases
(client)
backend/tests/test_integration.py:152
Method
test_custom_thresholds_stored
(self)
backend/tests/test_uncertainty_handler.py:31
Method
test_dashboard_critical_risk_count
Test that critical risk count is correct.
backend/tests/test_doctor_dashboard.py:195
Method
test_dashboard_empty_database
Test dashboard with empty database.
backend/tests/test_doctor_dashboard.py:171
Method
test_dashboard_high_risk_count
Test that high risk count is correct.
backend/tests/test_doctor_dashboard.py:188
Method
test_dashboard_new_cases_count
Test that new cases (last 7 days) are counted correctly.
backend/tests/test_doctor_dashboard.py:180
Method
test_dashboard_page_loads
Test that doctor dashboard page loads successfully.
backend/tests/test_doctor_dashboard.py:321
Method
test_dashboard_percentages_sum_to_100
Test that risk percentages sum to exactly 100%.
backend/tests/test_doctor_dashboard.py:157
Method
test_dashboard_returns_correct_risk_distribution
Test that dashboard returns correct risk distribution counts.
backend/tests/test_doctor_dashboard.py:144
Method
test_dashboard_returns_correct_total_patients
Test that dashboard returns correct total patient count.
backend/tests/test_doctor_dashboard.py:136
Method
test_dashboard_returns_success
Test that dashboard API returns success status.
backend/tests/test_doctor_dashboard.py:129
Method
test_default_threshold_equals_env_default
(self)
backend/tests/test_uncertainty_handler.py:27
Method
test_delete_another_user_entry_fails
(self, app, client, make_user)
backend/tests/test_patient_history.py:287
Function
test_delete_history_entry_unauthenticated
(client)
tests/test_history_routes.py:61
Method
test_delete_own_entry_succeeds
(self, app, client, make_user)
backend/tests/test_patient_history.py:305
Function
test_development_mode_missing_keys_succeeds
Test that in development mode, missing keys/models print warning but do NOT raise errors
backend/tests/test_startup_validation.py:84
Function
test_disease_invalid_prevalence
(client)
tests/test_disease_routes.py:109
Function
test_disease_invalid_test_result
(client)
tests/test_disease_routes.py:119
Function
test_disease_valid_input
(client)
tests/test_disease_routes.py:97
Method
test_display_results_empty
(self)
backend/tests/test_calculator.py:128
Method
test_display_results_output
(self)
backend/tests/test_calculator.py:135
Function
test_division_by_zero_guard
()
backend/tests/test_validation.py:42
Function
test_edge_cases
Test edge case generation.
backend/tests/test_synthetic.py:38
Method
test_error_message_contains_parameter_name
(self)
backend/tests/test_calculator.py:183
Method
test_error_response_has_non_200_status
Test that error responses have non-200 status
backend/tests/test_fetch_endpoints.py:231
Method
test_exactly_at_threshold_is_sufficient
(self)
backend/tests/test_uncertainty_handler.py:62
Method
test_filter_by_type
(self, app, client, make_user)
backend/tests/test_patient_history.py:346
Function
test_float_precision
()
backend/tests/test_validation.py:93
Method
test_frontend_can_distinguish_success_from_error
Test that frontend can use response.ok to distinguish success
backend/tests/test_fetch_endpoints.py:237
Function
test_gemini_invalid_language
(client)
tests/test_disease_routes.py:61
Function
test_gemini_invalid_test_result
(client)
tests/test_disease_routes.py:72
Function
test_gemini_valid_inputs_accepted
(client)
tests/test_disease_routes.py:84
Function
test_generate_population
Test population generation.
backend/tests/test_synthetic.py:20
Function
test_generate_single_patient
Test single patient generation.
backend/tests/test_synthetic.py:8
Method
test_get_config_returns_both_thresholds
(self)
backend/tests/test_uncertainty_handler.py:36
Function
test_get_history_entry_unauthenticated
(client)
tests/test_history_routes.py:54
Method
test_get_symptoms_list
Test that symptoms JSON is correctly parsed to list.
backend/tests/test_doctor_dashboard.py:271
Method
test_get_symptoms_list_invalid_json
Test that invalid JSON returns empty list.
backend/tests/test_doctor_dashboard.py:284
Function
test_high_probabilities
()
backend/tests/test_validation.py:97
Method
test_high_probabilities
(self)
backend/tests/test_calculator.py:48
Method
test_high_score_is_sufficient
(self)
backend/tests/test_uncertainty_handler.py:129
Function
test_high_sensitivity
()
backend/tests/test_validation.py:84
Function
test_high_specificity
()
backend/tests/test_validation.py:80
Method
test_history_authenticated_returns_paginated_response
Test that authenticated history request returns proper response structure
backend/tests/test_fetch_endpoints.py:66
Method
test_history_page_redirect_to_login
Test that history page redirects to login when not authenticated
backend/tests/test_fetch_endpoints.py:60
Method
test_history_unauthenticated_returns_401_json
Test that unauthenticated history request returns 401 JSON response
backend/tests/test_fetch_endpoints.py:48
Function
test_home_page
Test if home page loads correctly
backend/tests/test_integration.py:16
Method
test_home_page_loads
Test that home page loads correctly
backend/tests/test_fetch_endpoints.py:130
Function
test_in_memory_backend_basic
Test basic functionality of InMemoryBackend.
backend/tests/test_rate_limiter.py:20
Function
test_in_memory_backend_cleanup
Test that stale entries are automatically cleaned up from in-memory backend.
backend/tests/test_rate_limiter.py:92
Function
test_in_memory_backend_sliding_window
Test that requests outside the window expire correctly.
backend/tests/test_rate_limiter.py:62
Method
test_invalid_confidence_raises
(self)
backend/tests/test_uncertainty_handler.py:42
Function
test_invalid_content_type
(client)
backend/tests/test_integration.py:118
Method
test_invalid_margin_raises
(self)
backend/tests/test_uncertainty_handler.py:46
Method
test_invalid_prior_raises
(self)
backend/tests/test_calculator.py:171
Method
test_invalid_sensitivity_raises
(self)
backend/tests/test_calculator.py:175
Method
test_invalid_specificity_raises
(self)
backend/tests/test_calculator.py:179
Function
test_invalid_test_result
()
backend/tests/test_validation.py:37
Function
test_list_history_unauthenticated
(client)
tests/test_history_routes.py:40
Method
test_list_requires_auth
(self, client)
backend/tests/test_patient_history.py:234
Method
test_list_returns_only_own_entries
(self, app, client, make_user)
backend/tests/test_patient_history.py:245
Method
test_load_data_coercion
(self)
backend/tests/test_calculator.py:103
Method
test_load_data_empty_file
(self)
backend/tests/test_calculator.py:66
Method
test_load_data_large_file
(self)
backend/tests/test_calculator.py:88
Method
test_load_data_malformed_warn
(self)
backend/tests/test_calculator.py:73
Function
test_login_rate_limit
(client)
backend/routes/auth_routes.py:428
Function
test_login_with_valid_csrf_is_not_rejected_for_csrf
POST /login with a valid CSRF token must not return 400 (CSRF passes, auth may still fail).
backend/tests/test_csrf.py:111
Function
test_login_without_csrf_returns_400
POST /login with no CSRF token must be rejected.
backend/tests/test_csrf.py:70
← previous
next →
401–500 of 597, ranked by callers