MCPcopy Create free account

hub / github.com/CorralPeltzer/newTrackon / functions

Functions657 in github.com/CorralPeltzer/newTrackon

Methodtest_ignores_first_word
Should ignore the BITTORRENT prefix word.
tests/unit/test_utils.py:641
Methodtest_ignores_ip_list
Should only use URL, ignoring IP list.
tests/unit/test_utils.py:586
Methodtest_init_with_all_fields
Test that __init__ correctly assigns all fields.
tests/unit/test_tracker.py:18
Methodtest_init_with_none_values
Test that __init__ handles None values for optional fields.
tests/unit/test_tracker.py:55
Methodtest_insert_new_tracker_json_serializes_countries
Verify that countries are JSON serialized when inserted.
tests/unit/test_db.py:196
Methodtest_insert_new_tracker_json_serializes_country_codes
Verify that country codes are JSON serialized when inserted.
tests/unit/test_db.py:209
Methodtest_insert_new_tracker_json_serializes_historic
Verify that historic deque is JSON serialized when inserted.
tests/unit/test_db.py:235
Methodtest_insert_new_tracker_json_serializes_ips
Verify that IPs are JSON serialized when inserted.
tests/unit/test_db.py:185
Methodtest_insert_new_tracker_json_serializes_networks
Verify that networks are JSON serialized when inserted.
tests/unit/test_db.py:222
Methodtest_insert_new_tracker_stores_data_correctly
Verify that insert_new_tracker stores all tracker data correctly.
tests/unit/test_db.py:165
Methodtest_insert_new_tracker_with_multiple_ips
Verify that multiple IPs are stored correctly.
tests/unit/test_db.py:248
Methodtest_invalid_port_non_numeric
Should ignore entries with non-numeric ports.
tests/unit/test_utils.py:659
Methodtest_invalid_token_raises_runtime_error
Invalid starting token should raise RuntimeError.
tests/unit/test_bdecode.py:261
Methodtest_ip_api_network_error
Test IP API query with network error.
tests/unit/test_tracker.py:863
Methodtest_ip_api_success
Test successful IP API query.
tests/unit/test_tracker.py:853
Methodtest_ipv4_filter_with_zero_value
include_ipv4_only_trackers=0 should exclude IPv4-only trackers.
tests/integration/test_api_endpoints.py:949
Methodtest_ipv4_host
Should handle IPv4 address as host.
tests/unit/test_utils.py:793
Methodtest_ipv6_filter_with_zero_value
include_ipv6_only_trackers=0 should exclude IPv6-only trackers.
tests/integration/test_api_endpoints.py:961
Methodtest_ipv6_host
Should handle IPv6 address as host.
tests/unit/test_utils.py:801
Methodtest_is_down_appends_to_historic
Test that is_down appends 0 to historic.
tests/unit/test_tracker.py:438
Methodtest_is_down_sets_last_downtime
Test that is_down sets last_downtime to current time.
tests/unit/test_tracker.py:431
Methodtest_is_down_sets_status
Test that is_down sets status to 0.
tests/unit/test_tracker.py:425
Methodtest_is_up_appends_to_historic
Test that is_up appends 1 to historic.
tests/unit/test_tracker.py:418
Methodtest_is_up_sets_last_uptime
Test that is_up sets last_uptime to current time.
tests/unit/test_tracker.py:411
Methodtest_is_up_sets_status
Test that is_up sets status to 1.
tests/unit/test_tracker.py:405
Methodtest_large_integer_values
Test with large integer values typical in tracker responses.
tests/unit/test_bdecode.py:678
Methodtest_limits_to_10_entries
Should limit to first 10 entries to prevent DoS.
tests/unit/test_utils.py:650
Methodtest_loaded_data_respects_maxlen
Test that loaded data is truncated to maxlen if file has more items.
tests/unit/test_persistence.py:428
Methodtest_loading_with_existing_raw_data_file
Test that raw_data is loaded from file when it exists.
tests/unit/test_persistence.py:284
Methodtest_loading_with_existing_submitted_data_file
Test that submitted_data is loaded from file when it exists.
tests/unit/test_persistence.py:341
Methodtest_loading_without_existing_files
Test that empty deques are created when files don't exist.
tests/unit/test_persistence.py:398
Methodtest_locks_exist
Test that threading locks are properly initialized.
tests/unit/test_trackon.py:861
Methodtest_logs_duplicate_ip_current_during_processing
Test that duplicate IPs log current IP conflicts during processing.
tests/unit/test_trackon.py:440
Methodtest_logs_duplicate_ip_recent_during_processing
Test that duplicate IPs log recent IP conflicts during processing.
tests/unit/test_trackon.py:464
Methodtest_logs_grouped_ips_for_same_tracker
Test that multiple IPs for the same tracker are logged on one line.
tests/unit/test_trackon.py:488
Methodtest_malformed_entries
Should ignore malformed entries.
tests/unit/test_utils.py:675
Methodtest_max_downtime_value
Test that max_downtime is approximately 1.5 years in seconds.
tests/unit/test_tracker.py:874
Methodtest_max_response_size
Test MAX_RESPONSE_SIZE constant.
tests/unit/test_scraper.py:1074
Methodtest_memory_limited_get_exactly_at_limit
Test GET exactly at 1MB limit.
tests/unit/test_scraper.py:593
Methodtest_memory_limited_get_exceeds_limit
Test GET that exceeds 1MB limit.
tests/unit/test_scraper.py:583
Methodtest_memory_limited_get_success
Test successful GET within size limit.
tests/unit/test_scraper.py:571
Methodtest_memory_limited_get_uses_correct_headers
Test that correct headers are used.
tests/unit/test_scraper.py:604
Methodtest_minimal_tracker_response
Decode a minimal successful tracker response.
tests/unit/test_bdecode.py:494
Methodtest_mixed_case_protocol
Should only match uppercase protocol prefixes.
tests/unit/test_utils.py:632
Methodtest_multiple_ipv4_addresses
Should handle trackers with multiple IPv4 addresses.
tests/unit/test_utils.py:533
Methodtest_multiple_ipv6_addresses
Should handle trackers with multiple IPv6 addresses.
tests/unit/test_utils.py:543
Methodtest_multiple_protocols
Should parse multiple protocol entries.
tests/unit/test_utils.py:624
Methodtest_multiple_trackers
Should process multiple trackers correctly.
tests/unit/test_utils.py:412
Methodtest_multiple_trackers
Should format multiple trackers with double newlines.
tests/unit/test_utils.py:565
Methodtest_multiple_trackers_enqueue_and_process
Test enqueueing and processing multiple trackers.
tests/unit/test_trackon.py:900
Methodtest_multiple_trackers_in_response
API should return multiple trackers separated by newlines.
tests/integration/test_api_endpoints.py:1109
Methodtest_no_outdated_trackers
Test that no trackers are updated when all are recent.
tests/unit/test_trackon.py:942
Methodtest_no_warning_for_no_overlap
Test that no warning is logged when there is no recent IP overlap.
tests/unit/test_trackon.py:795
Methodtest_no_warning_for_unique_ips
Test that no warning is logged when all IPs are unique.
tests/unit/test_trackon.py:728
Methodtest_no_warning_when_no_ips
Test that no warning is logged when there are no IPs.
tests/unit/test_trackon.py:745
Methodtest_only_bittorrent_prefix
Should handle record with only BITTORRENT prefix.
tests/unit/test_utils.py:691
Methodtest_outdated_tracker_gets_deleted
Test that outdated tracker marked for deletion gets deleted.
tests/unit/test_trackon.py:1002
Methodtest_outdated_tracker_gets_updated
Test that outdated tracker gets updated (not deleted).
tests/unit/test_trackon.py:972
Methodtest_overwrites_existing_cors_header
Should overwrite any existing CORS header.
tests/unit/test_utils.py:51
Methodtest_peek_returns_none_at_end
peek() returns None when at end of data. Note: peek() implementation uses `index + 1 >= len(data)` which means it returns None when o
tests/unit/test_bdecode.py:700
Methodtest_plural_days
Should return 'X days' for less than 31 days.
tests/unit/test_utils.py:220
Methodtest_plural_hours
Should return 'X hours' for less than 24 hours.
tests/unit/test_utils.py:198
Methodtest_plural_minutes
Should return 'X minutes' for less than 60 minutes.
tests/unit/test_utils.py:176
Methodtest_plural_months
Should return 'X months' for less than 12 months.
tests/unit/test_utils.py:243
Methodtest_plural_seconds
Should return 'X seconds' for less than 60 seconds.
tests/unit/test_utils.py:143
Methodtest_plural_years
Should return 'X years' for multiple years.
tests/unit/test_utils.py:265
Methodtest_port_with_leading_zeros
Should handle ports with leading zeros.
tests/unit/test_utils.py:708
Methodtest_post_api_add_empty_returns_400
POST /api/add with empty or missing new_trackers should return 400.
tests/integration/test_api_endpoints.py:82
Methodtest_post_api_add_missing_field_returns_400
POST /api/add without new_trackers field should return 400.
tests/integration/test_api_endpoints.py:87
Methodtest_post_api_add_too_long_input_returns_413
POST /api/add with input exceeding max_input_length should return 413.
tests/integration/test_api_endpoints.py:94
Methodtest_post_api_add_with_trackers_returns_204
POST /api/add with valid trackers should return 204.
tests/integration/test_api_endpoints.py:70
Methodtest_post_main_page_empty_string_returns_form_feedback
POST / with empty new_trackers should return EMPTY feedback.
tests/integration/test_api_endpoints.py:42
Methodtest_post_main_page_missing_field_returns_400
POST / without new_trackers field should return 400.
tests/integration/test_api_endpoints.py:50
Methodtest_post_main_page_too_long_input_returns_413
POST / with input exceeding max_input_length should return 413.
tests/integration/test_api_endpoints.py:57
Methodtest_post_main_page_with_new_trackers_triggers_enqueue
POST / with new_trackers should trigger enqueue_new_trackers.
tests/integration/test_api_endpoints.py:28
Methodtest_preserves_ip_list_in_result
Should preserve the IP list in the result tuples.
tests/unit/test_utils.py:523
Methodtest_preserves_none_values
Should preserve None values in the row.
tests/unit/test_utils.py:102
Methodtest_preserves_original_info
Test that original info is preserved in the updated entry.
tests/unit/test_trackon.py:837
Methodtest_preserves_url_exactly
Should preserve URL exactly as provided.
tests/unit/test_utils.py:595
Methodtest_processes_all_queued_trackers
Test that all queued trackers are processed.
tests/unit/test_trackon.py:628
Methodtest_raw_data_maxlen
Verify raw_data has maxlen of 600.
tests/unit/test_persistence.py:25
Methodtest_raw_data_overflow
Test raw_data removes oldest when full.
tests/unit/test_persistence.py:188
Methodtest_raw_history_file_path
Test raw_history_file constant value.
tests/unit/test_persistence.py:491
Methodtest_read_advances_index
read() advances the internal index.
tests/unit/test_bdecode.py:712
Methodtest_read_past_end_raises_error
read() raises RuntimeError when reading past end.
tests/unit/test_bdecode.py:720
Methodtest_read_until_finds_token
read_until() correctly finds and stops at token.
tests/unit/test_bdecode.py:726
Methodtest_read_until_token_not_found
read_until() raises RuntimeError when token not found.
tests/unit/test_bdecode.py:733
Methodtest_redact_origin_both_ips
Test redacting both IPv4 and IPv6 addresses.
tests/unit/test_scraper.py:658
Methodtest_redact_origin_ipv4
Test redacting IPv4 address.
tests/unit/test_scraper.py:623
Methodtest_redact_origin_ipv6
Test redacting IPv6 address.
tests/unit/test_scraper.py:636
Methodtest_redact_origin_multiple_occurrences
Test redacting multiple occurrences of the same IP.
tests/unit/test_scraper.py:1156
Methodtest_redact_origin_no_ips_set
Test redaction when no IPs are set.
tests/unit/test_scraper.py:676
Methodtest_redact_origin_ports
Test redacting HTTP and UDP ports.
tests/unit/test_scraper.py:649
Methodtest_reject_api_request_with_info_hash
API requests with info_hash should also be rejected.
tests/integration/test_api_endpoints.py:1061
Methodtest_reject_request_with_info_hash
Requests with info_hash parameter should be rejected with 403.
tests/integration/test_api_endpoints.py:1056
Methodtest_reject_tracker_with_duplicate_ip
Insert tracker with IP 1.2.3.4, try to add new tracker that resolves to same IP, verify rejection.
tests/integration/test_tracker_workflow.py:475
Methodtest_reject_tracker_with_interval_above_maximum
Mock scraper to return interval > 10800, verify tracker rejected.
tests/integration/test_tracker_workflow.py:661
Methodtest_reject_tracker_with_interval_below_minimum
Mock scraper to return interval < 300, verify tracker rejected.
tests/integration/test_tracker_workflow.py:613
Methodtest_reject_tracker_with_missing_interval
Verify tracker with missing interval is rejected.
tests/integration/test_tracker_workflow.py:847
Methodtest_reject_tracker_with_overlapping_ips
Test rejection when new tracker has any IP overlapping with existing.
tests/integration/test_tracker_workflow.py:520
← previousnext →401–500 of 657, ranked by callers