Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CorralPeltzer/newTrackon
/ functions
Functions
657 in github.com/CorralPeltzer/newTrackon
⨍
Functions
657
◇
Types & classes
106
↳
Endpoints
64
Method
test_rejects_already_queued_tracker
Test that URLs already in the queue are rejected.
tests/unit/test_trackon.py:171
Method
test_rejects_already_tracked_host_during_processing
Test that trackers with already tracked hosts are rejected during processing.
tests/unit/test_trackon.py:512
Method
test_rejects_already_tracked_tracker
Test that URLs already being tracked are rejected.
tests/unit/test_trackon.py:189
Method
test_rejects_duplicate_ip_during_processing
Test that trackers with duplicate IPs are rejected during processing.
tests/unit/test_trackon.py:417
Method
test_rejects_interval_too_long
Test that trackers with interval > 10800 seconds are rejected.
tests/unit/test_trackon.py:348
Method
test_rejects_interval_too_short
Test that trackers with interval < 300 seconds are rejected.
tests/unit/test_trackon.py:321
Method
test_rejects_ip_hostname_ipv4
Test that URLs with IPv4 addresses as hostnames are rejected.
tests/unit/test_trackon.py:151
Method
test_rejects_ip_hostname_ipv6
Test that URLs with IPv6 addresses as hostnames are rejected.
tests/unit/test_trackon.py:161
Method
test_rejects_missing_interval
Test that trackers with missing interval are rejected.
tests/unit/test_trackon.py:535
Method
test_rejects_tracker_with_duplicate_ip
Test that trackers with IPs already in the list are rejected.
tests/unit/test_trackon.py:208
Method
test_remove_ipv4_only_when_version_6
Should remove IPv4-only trackers when requesting IPv6.
tests/unit/test_utils.py:447
Method
test_remove_ipv6_only_when_version_4
Should remove IPv6-only trackers when requesting IPv4.
tests/unit/test_utils.py:464
Method
test_replaces_original_path_with_announce
Should replace original path with /announce.
tests/unit/test_utils.py:784
Method
test_returns_same_list
Should return the same list object passed in.
tests/unit/test_utils.py:435
Method
test_returns_same_response_object
Should return the same response object passed in.
tests/unit/test_utils.py:42
Method
test_round_trip_preserves_order
Test that item order is preserved through save/load cycle.
tests/unit/test_persistence.py:550
Method
test_round_trip_with_submission_data
Test that submission result data survives save/load cycle.
tests/unit/test_persistence.py:529
Method
test_round_trip_with_tracker_data
Test that tracker data survives save/load cycle.
tests/unit/test_persistence.py:507
Method
test_roundtrip_empty_lists
Verify empty lists are properly serialized and deserialized.
tests/unit/test_db.py:958
Method
test_roundtrip_large_historic_deque
Verify large historic deques are properly handled.
tests/unit/test_db.py:1041
Method
test_roundtrip_multiple_ipv4_and_ipv6
Verify multiple mixed IP addresses are properly handled.
tests/unit/test_db.py:1068
Method
test_roundtrip_special_characters_in_strings
Verify strings with special characters are properly handled.
tests/unit/test_db.py:987
Method
test_roundtrip_unicode_characters
Verify Unicode characters are properly handled.
tests/unit/test_db.py:1016
Method
test_save_and_load_empty_history
Test saving and loading an empty history buffer.
tests/unit/test_persistence.py:264
Method
test_save_deque_creates_valid_json
Test that output is valid parseable JSON.
tests/unit/test_persistence.py:148
Method
test_save_deque_overwrites_existing_file
Test that saving overwrites existing file content.
tests/unit/test_persistence.py:127
Method
test_save_deque_with_dicts
Test saving a deque with dictionary data.
tests/unit/test_persistence.py:73
Method
test_save_deque_with_history_data
Test saving a deque with HistoryData.
tests/unit/test_persistence.py:55
Method
test_save_deque_with_multiple_items
Test saving a deque with multiple HistoryData items.
tests/unit/test_persistence.py:107
Method
test_save_deque_with_nested_data
Test saving a deque with nested structures (info as list).
tests/unit/test_persistence.py:90
Method
test_save_empty_deque
Test saving an empty deque writes empty JSON array.
tests/unit/test_persistence.py:41
Method
test_saves_history_to_disk_after_each_tracker
Test that history is saved to disk after processing each tracker.
tests/unit/test_trackon.py:669
Method
test_scraping_headers
Test SCRAPING_HEADERS configuration.
tests/unit/test_scraper.py:1078
Method
test_sets_mimetype_to_text_plain
Should set mimetype to text/plain.
tests/unit/test_utils.py:33
Method
test_single_column
Should handle single column rows.
tests/unit/test_utils.py:92
Method
test_single_tracker
Should format single tracker with double newline.
tests/unit/test_utils.py:557
Method
test_singular_day
Should return '1 day' for 1 day ago.
tests/unit/test_utils.py:209
Method
test_singular_hour
Should return '1 hour' for 1 hour ago.
tests/unit/test_utils.py:187
Method
test_singular_minute
Should return '1 minute' for 1 minute ago.
tests/unit/test_utils.py:165
Method
test_singular_month
Should return '1 month' for approximately 1 month ago.
tests/unit/test_utils.py:231
Method
test_singular_second
Should return '1 second' for 1 second ago.
tests/unit/test_utils.py:132
Method
test_singular_year
Should return '1 year' for 1 year ago.
tests/unit/test_utils.py:254
Method
test_special_characters_in_tracker_url
API should handle tracker URLs with special characters.
tests/integration/test_api_endpoints.py:1144
Method
test_standard_http_port_80
Should handle explicit port 80 for HTTP.
tests/unit/test_utils.py:817
Method
test_standard_https_port_443
Should handle explicit port 443 for HTTPS.
tests/unit/test_utils.py:809
Method
test_string_without_length_separator
String without colon should raise error.
tests/unit/test_bdecode.py:297
Method
test_subdomain_host
Should preserve subdomain in host.
tests/unit/test_utils.py:825
Method
test_submitted_data_maxlen
Verify submitted_data has maxlen of 600.
tests/unit/test_persistence.py:31
Method
test_submitted_data_overflow
Test submitted_data removes oldest when full.
tests/unit/test_persistence.py:207
Method
test_submitted_history_file_path
Test submitted_history_file constant value.
tests/unit/test_persistence.py:497
Method
test_submitted_queue_maxsize
Verify submitted_queue has maxsize of 10000.
tests/unit/test_persistence.py:19
Method
test_submitted_queue_overflow
Test submitted_queue rejects inserts when full.
tests/unit/test_persistence.py:169
Method
test_successful_tracker_insertion
Test successful insertion of a new tracker.
tests/unit/test_trackon.py:600
Method
test_tls_false_forces_http
Should use HTTP scheme when tls=False regardless of input.
tests/unit/test_utils.py:768
Method
test_tls_true_forces_https
Should use HTTPS scheme when tls=True regardless of input.
tests/unit/test_utils.py:760
Method
test_tracker_cleared_on_ip_resolution_failure
Test that tracker is cleared when IP resolution fails.
tests/integration/test_tracker_workflow.py:936
Method
test_tracker_denied_by_bep34
Test tracker is marked for deletion when BEP34 denies connection.
tests/integration/test_tracker_workflow.py:957
Method
test_tracker_ends_up_in_database_after_processing
Verify tracker ends up in database after full submission processing.
tests/integration/test_tracker_workflow.py:375
Method
test_tracker_failure_response
Decode a tracker failure response.
tests/unit/test_bdecode.py:566
Method
test_tracker_goes_down_on_scraper_error
Insert working tracker, mock scraper to raise RuntimeError, verify status changes to 0 and last_downtime updated.
tests/integration/test_tracker_workflow.py:204
Method
test_tracker_goes_down_updates_database
Verify that tracker going down is properly persisted to database.
tests/integration/test_tracker_workflow.py:258
Method
test_tracker_marked_for_deletion_after_max_downtime
Test that tracker is marked for deletion if last_uptime exceeds max_downtime.
tests/integration/test_tracker_workflow.py:896
Method
test_tracker_response_complete_example
Decode a complete realistic tracker response.
tests/unit/test_bdecode.py:594
Method
test_tracker_response_with_both_peer_types
Decode a tracker response with both IPv4 and IPv6 peers.
tests/unit/test_bdecode.py:536
Method
test_tracker_response_with_min_interval
Decode a tracker response with minimum interval.
tests/unit/test_bdecode.py:587
Method
test_tracker_response_with_peers
Decode a tracker response with binary peer data.
tests/unit/test_bdecode.py:509
Method
test_tracker_response_with_tracker_id
Decode a tracker response with tracker ID.
tests/unit/test_bdecode.py:581
Method
test_tracker_updates_url_from_bep34
Test tracker URL is updated based on BEP34 preferences.
tests/integration/test_tracker_workflow.py:970
Method
test_tracker_url_without_port
Test tracker URL without explicit port.
tests/unit/test_tracker.py:904
Method
test_tracker_warning_response
Decode a tracker response with warning message.
tests/unit/test_bdecode.py:574
Method
test_tracker_with_empty_ips_list
Should filter out trackers with empty IP lists.
tests/unit/test_utils.py:498
Method
test_tracker_with_ip_as_hostname_in_url
Test tracker creation with IP address as hostname.
tests/unit/test_tracker.py:885
Method
test_tracker_with_none_ips_treated_as_falsy
Trackers with falsy IP lists should be filtered out.
tests/unit/test_utils.py:511
Method
test_truncated_dict_raises_eof_error
Dict without end marker should raise EOFError. The decoder raises EOFError when it cannot read more data.
tests/unit/test_bdecode.py:288
Method
test_truncated_integer_raises_runtime_error
Integer without end marker should raise RuntimeError.
tests/unit/test_bdecode.py:273
Method
test_truncated_list_raises_eof_error
List without end marker should raise EOFError. The decoder raises EOFError when it cannot read more data.
tests/unit/test_bdecode.py:279
Method
test_truncated_string_raises_runtime_error
Truncated string should raise RuntimeError.
tests/unit/test_bdecode.py:267
Method
test_udp_create_announce_request_structure
Test that announce request has correct structure and length.
tests/unit/test_scraper.py:75
Method
test_udp_create_announce_request_with_random_hash
Test announce request with various hash values.
tests/unit/test_scraper.py:1088
Method
test_udp_create_binary_connection_request_structure
Test that connection request has correct structure and length.
tests/unit/test_scraper.py:50
Method
test_udp_create_binary_connection_request_transaction_id_range
Test that transaction ID is within expected range.
tests/unit/test_scraper.py:69
Method
test_udp_parse_announce_response_error_action
Test that non-announce action raises RuntimeError.
tests/unit/test_scraper.py:245
Method
test_udp_parse_announce_response_multiple_peers
Test parsing announce response with multiple peers.
tests/unit/test_scraper.py:1121
Method
test_udp_parse_announce_response_no_peers
Test parsing announce response with no peers.
tests/unit/test_scraper.py:1104
Method
test_udp_parse_announce_response_success_ipv4
Test successful parsing of IPv4 announce response.
tests/unit/test_scraper.py:173
Method
test_udp_parse_announce_response_success_ipv6
Test successful parsing of IPv6 announce response.
tests/unit/test_scraper.py:199
Method
test_udp_parse_announce_response_transaction_id_mismatch
Test that mismatched transaction ID raises RuntimeError.
tests/unit/test_scraper.py:234
Method
test_udp_parse_announce_response_wrong_length
Test that short announce response raises RuntimeError.
tests/unit/test_scraper.py:227
Method
test_udp_parse_connection_response_error_action
Test that error action (0x3) raises RuntimeError.
tests/unit/test_scraper.py:163
Method
test_udp_parse_connection_response_success
Test successful parsing of connection response.
tests/unit/test_scraper.py:133
Method
test_udp_parse_connection_response_transaction_id_mismatch
Test that mismatched transaction ID raises RuntimeError.
tests/unit/test_scraper.py:154
Method
test_udp_parse_connection_response_wrong_length
Test that short response raises RuntimeError.
tests/unit/test_scraper.py:147
Method
test_udp_port_value
Test UDP_PORT constant.
tests/unit/test_scraper.py:1070
Method
test_unknown_protocol_ignored
Should ignore unknown protocols.
tests/unit/test_utils.py:716
Method
test_update_ipapi_data_invalid_response
Test that update_ipapi_data handles invalid API response.
tests/unit/test_tracker.py:839
Method
test_update_ipapi_data_multiple_ips
Test that update_ipapi_data fetches data for multiple IPs.
tests/unit/test_tracker.py:813
Method
test_update_ipapi_data_no_ips
Test that update_ipapi_data handles None IPs.
tests/unit/test_tracker.py:829
Method
test_update_ipapi_data_single_ip
Test that update_ipapi_data fetches data for single IP.
tests/unit/test_tracker.py:802
Method
test_update_ips_deduplicates
Test that update_ips removes duplicate IPs.
tests/unit/test_tracker.py:480
Method
test_update_ips_dns_failure_raises
Test that update_ips raises RuntimeError on DNS failure.
tests/unit/test_tracker.py:491
← previous
next →
501–600 of 657, ranked by callers