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_enqueue_newline_separated_urls
Test parsing newline-separated tracker URLs.
tests/unit/test_trackon.py:71
Method
test_enqueue_single_url
Test enqueueing a single URL.
tests/unit/test_trackon.py:135
Method
test_enqueue_space_separated_urls
Test parsing space-separated tracker URLs.
tests/unit/test_trackon.py:50
Method
test_enqueue_tab_separated_urls
Test parsing tab-separated tracker URLs.
tests/unit/test_trackon.py:85
Method
test_ensure_db_existence_creates_db_when_missing
Test that ensure_db_existence calls create_db when file doesn't exist.
tests/unit/test_db.py:1192
Method
test_ensure_db_existence_does_not_recreate_existing_db
Test that ensure_db_existence doesn't recreate an existing database.
tests/unit/test_db.py:1205
Method
test_exclude_both_ipv4_and_ipv6_only
Excluding both should only return dual-stack trackers.
tests/integration/test_api_endpoints.py:935
Method
test_exclude_ipv4_only_trackers
include_ipv4_only_trackers=false should exclude IPv4-only trackers.
tests/integration/test_api_endpoints.py:907
Method
test_exclude_ipv6_only_trackers
include_ipv6_only_trackers=false should exclude IPv6-only trackers.
tests/integration/test_api_endpoints.py:921
Method
test_extra_whitespace
Should handle extra whitespace between entries.
tests/unit/test_utils.py:699
Method
test_filters_work_with_api_all
IP filters should work with /api/all endpoint.
tests/integration/test_api_endpoints.py:985
Method
test_filters_work_with_api_stable
IP filters should work with /api/stable endpoint.
tests/integration/test_api_endpoints.py:973
Method
test_from_url_creates_tracker
Test that from_url creates a Tracker with correct initial values.
tests/unit/test_tracker.py:286
Method
test_from_url_dns_failure_raises
Test that from_url raises RuntimeError when DNS resolution fails.
tests/unit/test_tracker.py:341
Method
test_from_url_invalid_scheme_raises
Test that from_url raises RuntimeError for invalid scheme.
tests/unit/test_tracker.py:336
Method
test_from_url_orders_ipv6_first
Test that from_url orders IPv6 addresses before IPv4.
tests/unit/test_tracker.py:323
Method
test_from_url_resolves_ipv4
Test that from_url resolves IPv4 addresses.
tests/unit/test_tracker.py:301
Method
test_from_url_resolves_ipv6
Test that from_url resolves IPv6 addresses.
tests/unit/test_tracker.py:312
Method
test_from_url_sets_added_timestamp
Test that from_url sets the added timestamp.
tests/unit/test_tracker.py:348
Method
test_full_enqueue_and_process_flow
Test the full flow from enqueueing to processing.
tests/unit/test_trackon.py:873
Method
test_full_submission_flow_integration
Test complete flow from URL submission to database insertion.
tests/integration/test_tracker_workflow.py:422
Method
test_full_tracker_response_no_peers
Decode a full tracker response without peers.
tests/unit/test_bdecode.py:501
Method
test_get_about_returns_200
GET /about should return 200 OK.
tests/integration/test_api_endpoints.py:1047
Method
test_get_all_data_deserializes_countries
Verify that countries are deserialized from JSON.
tests/unit/test_db.py:314
Method
test_get_all_data_deserializes_country_codes
Verify that country codes are deserialized from JSON.
tests/unit/test_db.py:322
Method
test_get_all_data_deserializes_historic_as_deque
Verify that historic is deserialized as a deque with maxlen.
tests/unit/test_db.py:338
Method
test_get_all_data_deserializes_ips
Verify that IPs are deserialized from JSON.
tests/unit/test_db.py:306
Method
test_get_all_data_deserializes_networks
Verify that networks are deserialized from JSON.
tests/unit/test_db.py:330
Method
test_get_all_data_orders_by_uptime_descending
Verify that trackers are ordered by uptime in descending order.
tests/unit/test_db.py:370
Method
test_get_all_data_returns_correct_host
Verify that returned Tracker has correct host.
tests/unit/test_db.py:290
Method
test_get_all_data_returns_correct_scalar_fields
Verify that scalar fields are returned correctly.
tests/unit/test_db.py:348
Method
test_get_all_data_returns_correct_url
Verify that returned Tracker has correct URL.
tests/unit/test_db.py:298
Method
test_get_all_data_returns_empty_list_when_no_trackers
Verify that get_all_data returns empty list when DB is empty.
tests/unit/test_db.py:364
Method
test_get_all_data_returns_tracker_objects
Verify that get_all_data returns a list of Tracker objects.
tests/unit/test_db.py:281
Method
test_get_api_all_includes_low_uptime_trackers
GET /api/all should include trackers with low uptime.
tests/integration/test_api_endpoints.py:358
Method
test_get_api_all_returns_all_trackers
GET /api/all should return all trackers regardless of uptime.
tests/integration/test_api_endpoints.py:351
Method
test_get_api_all_with_min_age_days_filters_new_trackers
GET /api/all should apply min_age_days filtering.
tests/integration/test_api_endpoints.py:390
Method
test_get_api_best_follow_redirect
GET /api/best following redirect should return stable trackers.
tests/integration/test_api_endpoints.py:341
Method
test_get_api_best_redirects_to_stable
GET /api/best should redirect to /api/stable with 301.
tests/integration/test_api_endpoints.py:335
Method
test_get_api_data_empty_database
Verify get_api_data returns empty string for empty database.
tests/unit/test_db.py:948
Method
test_get_api_data_exclude_ipv4_only
Verify include_ipv4_only=False filters out IPv4-only trackers.
tests/unit/test_db.py:842
Method
test_get_api_data_exclude_ipv6_only
Verify include_ipv6_only=False filters out IPv6-only trackers.
tests/unit/test_db.py:895
Method
test_get_api_data_http_returns_http_and_https_trackers
Verify /api/http returns HTTP and HTTPS trackers with uptime >= 95.
tests/unit/test_db.py:771
Method
test_get_api_data_live_returns_all_live_trackers
Verify /api/live returns all trackers with status=1.
tests/unit/test_db.py:790
Method
test_get_api_data_orders_by_uptime_descending
Verify results are ordered by uptime in descending order.
tests/unit/test_db.py:834
Method
test_get_api_data_percentage_returns_trackers_above_threshold
Verify percentage query returns trackers with uptime >= threshold.
tests/unit/test_db.py:802
Method
test_get_api_data_percentage_zero_returns_all_trackers
Verify percentage query with 0 returns all trackers.
tests/unit/test_db.py:814
Method
test_get_api_data_returns_formatted_string
Verify get_api_data returns properly formatted string.
tests/unit/test_db.py:824
Method
test_get_api_data_udp_returns_udp_trackers
Verify /api/udp returns only UDP trackers with uptime >= 95.
tests/unit/test_db.py:780
Method
test_get_api_docs_returns_200
GET /api should return 200 OK.
tests/integration/test_api_endpoints.py:1042
Method
test_get_api_http_excludes_udp_trackers
GET /api/http should exclude UDP trackers.
tests/integration/test_api_endpoints.py:744
Method
test_get_api_http_includes_https_trackers
GET /api/http should include HTTPS trackers (starts with http).
tests/integration/test_api_endpoints.py:712
Method
test_get_api_http_returns_http_trackers
GET /api/http should return HTTP trackers with >= 95% uptime.
tests/integration/test_api_endpoints.py:681
Method
test_get_api_http_with_min_age_days_filters_new_trackers
GET /api/http should apply min_age_days filtering.
tests/integration/test_api_endpoints.py:751
Method
test_get_api_live_excludes_offline_trackers
GET /api/live should exclude offline trackers.
tests/integration/test_api_endpoints.py:459
Method
test_get_api_live_returns_online_trackers
GET /api/live should return currently online trackers.
tests/integration/test_api_endpoints.py:451
Method
test_get_api_live_with_min_age_days_filters_new_trackers
GET /api/live should apply min_age_days filtering.
tests/integration/test_api_endpoints.py:491
Method
test_get_api_percentage_100_returns_only_perfect
GET /api/100 should only return trackers with 100% uptime.
tests/integration/test_api_endpoints.py:131
Method
test_get_api_percentage_filters_by_uptime
GET /api/<percentage> should exclude trackers below threshold.
tests/integration/test_api_endpoints.py:118
Method
test_get_api_percentage_invalid_above_100_returns_400
GET /api/<percentage> with percentage > 100 should return 400.
tests/integration/test_api_endpoints.py:140
Method
test_get_api_percentage_negative_returns_400
GET /api/<percentage> with negative percentage should return 400.
tests/integration/test_api_endpoints.py:148
Method
test_get_api_percentage_returns_filtered_trackers
GET /api/<percentage> should return trackers with uptime >= percentage.
tests/integration/test_api_endpoints.py:106
Method
test_get_api_percentage_with_invalid_min_age_days_returns_400
GET /api/<percentage> should reject invalid min_age_days values.
tests/integration/test_api_endpoints.py:213
Method
test_get_api_percentage_with_min_age_days_filters_new_trackers
GET /api/<percentage> should apply min_age_days filtering.
tests/integration/test_api_endpoints.py:156
Method
test_get_api_percentage_zero_returns_all
GET /api/0 should return all trackers.
tests/integration/test_api_endpoints.py:125
Method
test_get_api_stable_excludes_below_95
GET /api/stable should exclude trackers below 95% uptime.
tests/integration/test_api_endpoints.py:234
Method
test_get_api_stable_returns_95_percent_trackers
GET /api/stable should return trackers with >= 95% uptime.
tests/integration/test_api_endpoints.py:224
Method
test_get_api_stable_with_invalid_min_age_days_returns_400
min_age_days should be a non-negative integer.
tests/integration/test_api_endpoints.py:321
Method
test_get_api_stable_with_min_age_days_zero_includes_new_trackers
min_age_days=0 should disable the age filter and include newer trackers.
tests/integration/test_api_endpoints.py:264
Method
test_get_api_udp_excludes_http_trackers
GET /api/udp should exclude HTTP trackers.
tests/integration/test_api_endpoints.py:560
Method
test_get_api_udp_excludes_low_uptime_udp
GET /api/udp should exclude UDP trackers with < 95% uptime.
tests/integration/test_api_endpoints.py:590
Method
test_get_api_udp_returns_udp_trackers
GET /api/udp should return UDP trackers with >= 95% uptime.
tests/integration/test_api_endpoints.py:552
Method
test_get_api_udp_with_min_age_days_filters_new_trackers
GET /api/udp should apply min_age_days filtering.
tests/integration/test_api_endpoints.py:620
Method
test_get_bep_34_deny_connection
Test BEP34 record that denies connection (BITTORRENT only).
tests/unit/test_scraper.py:537
Method
test_get_bep_34_multiple_records
Test with multiple TXT records, one being BEP34.
tests/unit/test_scraper.py:551
Method
test_get_bep_34_no_record
Test when no TXT record exists.
tests/unit/test_scraper.py:513
Method
test_get_bep_34_non_bittorrent_record
Test when TXT record doesn't start with BITTORRENT.
tests/unit/test_scraper.py:523
Method
test_get_bep_34_valid_record
Test parsing valid BEP34 TXT record.
tests/unit/test_scraper.py:499
Method
test_get_faq_returns_200
GET /faq should return 200 OK.
tests/integration/test_api_endpoints.py:1032
Method
test_get_list_returns_200
GET /list should return 200 OK.
tests/integration/test_api_endpoints.py:1037
Method
test_get_main_page_returns_200
GET / should return 200 OK.
tests/integration/test_api_endpoints.py:16
Method
test_get_main_page_with_trackers
GET / should display trackers from database.
tests/integration/test_api_endpoints.py:21
Method
test_get_raw_returns_200
GET /raw should return 200 OK.
tests/integration/test_api_endpoints.py:1017
Method
test_get_raw_with_data
GET /raw should render the raw template.
tests/integration/test_api_endpoints.py:1022
Method
test_get_server_ip_v4
Test getting IPv4 address.
tests/unit/test_scraper.py:1043
Method
test_get_server_ip_v6
Test getting IPv6 address.
tests/unit/test_scraper.py:1053
Method
test_get_submitted_returns_200
GET /submitted should return 200 OK.
tests/integration/test_api_endpoints.py:1001
Method
test_get_submitted_with_data
GET /submitted should render the submitted template.
tests/integration/test_api_endpoints.py:1006
Method
test_handles_attempt_submitted_runtime_error
Test that RuntimeError from attempt_submitted is handled.
tests/unit/test_trackon.py:562
Method
test_handles_attempt_submitted_value_error
Test that ValueError from attempt_submitted is handled.
tests/unit/test_trackon.py:581
Method
test_handles_tracker_from_url_runtime_error
Test that RuntimeError from Tracker.from_url is handled.
tests/unit/test_trackon.py:252
Method
test_handles_tracker_from_url_value_error
Test that ValueError from Tracker.from_url is handled.
tests/unit/test_trackon.py:270
Method
test_handles_trackers_with_no_ips
Test duplicate detection when some trackers have no IPs.
tests/unit/test_trackon.py:754
Method
test_history_fifo_order_preserved
Test that FIFO order is maintained during overflow.
tests/unit/test_persistence.py:226
Method
test_http_port_value
Test HTTP_PORT constant.
tests/unit/test_scraper.py:1066
Method
test_http_tracker_goes_down
Test HTTP tracker going down.
tests/integration/test_tracker_workflow.py:310
Method
test_http_with_port
Should build HTTP URL preserving explicit port.
tests/unit/test_utils.py:744
Method
test_http_without_port
Should build HTTP URL with default port 80.
tests/unit/test_utils.py:752
Method
test_https_with_port
Should build HTTPS URL preserving explicit port.
tests/unit/test_utils.py:728
Method
test_https_without_port
Should build HTTPS URL with default port 443.
tests/unit/test_utils.py:736
← previous
next →
301–400 of 657, ranked by callers