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
Function
insert_new_tracker
(tracker: Tracker)
newTrackon/db.py:157
Function
insert_sample_tracker
Insert sample tracker into the test database.
tests/conftest.py:143
Function
inserted_sample_tracker
Insert sample tracker into the test database.
tests/unit/test_db.py:135
Function
list_stable
()
newTrackon/views.py:116
Function
main
()
newTrackon/trackerlist_project.py:9
Function
mock_db_connection
Patch sqlite3.connect to use in-memory database.
tests/conftest.py:82
Method
mock_ip_api
(ip: str)
tests/unit/test_tracker.py:817
Function
mock_ip_resolution
Mock socket.getaddrinfo for IP resolution.
tests/conftest.py:267
Function
mock_network
Disable all network calls by default.
tests/conftest.py:171
Method
mock_socket
Create a mock socket for UDP testing.
tests/unit/test_scraper.py:375
Method
mock_successful_response
Create a mock successful HTTP response.
tests/unit/test_scraper.py:263
Function
mock_tracker_response
Return a mock successful tracker response.
tests/conftest.py:238
Function
mock_udp_response
Return mock UDP tracker response data.
tests/conftest.py:249
Function
new_trackers
()
newTrackon/views.py:70
Function
new_trackers_api
()
newTrackon/views.py:86
Function
openapi_def
()
newTrackon/views.py:214
Function
patched_connect
(database: str, *args: Any, **kwargs: Any)
tests/conftest.py:86
Function
patched_connect
(database: str, *args: Any, **kwargs: Any)
tests/integration/test_tracker_workflow.py:52
Function
patched_connect
(database: str, *args: Any, **kwargs: Any)
tests/unit/test_db.py:81
Function
patched_db
Patch sqlite3.connect to use the test database with wrapper.
tests/unit/test_db.py:77
Method
patched_exists
(path: str)
tests/unit/test_persistence.py:299
Method
patched_open
(path: str, *args: Any, **kwargs: Any)
tests/unit/test_persistence.py:313
Method
populated_db
Populate DB with various trackers for API tests.
tests/unit/test_db.py:664
Function
process_submitted_queue
()
newTrackon/ingest.py:122
Function
raw
()
newTrackon/views.py:126
Method
recv_side_effect
(size: int)
tests/unit/test_scraper.py:406
Function
reject_announce_requests
()
newTrackon/views.py:219
Function
reset_globals
Reset global state between tests.
tests/conftest.py:190
Method
row_factory
(self)
tests/unit/test_db.py:39
Function
sample_tracker
Create a sample Tracker instance for testing.
tests/conftest.py:118
Function
sample_tracker_data
Return sample tracker data as a dictionary.
tests/conftest.py:96
Function
sample_tracker_dict
Return sample tracker data as a dictionary.
tests/unit/test_db.py:91
Function
sample_tracker_obj
Create a sample Tracker instance for testing.
tests/unit/test_db.py:113
Function
shared_memory_db
Provide a shared in-memory SQLite database that persists across connections. Uses a URI-based connection with shared cache to allow multiple conn
tests/integration/test_tracker_workflow.py:20
Function
submission_worker
()
newTrackon/ingest.py:133
Function
submitted
()
newTrackon/views.py:100
Method
test_accept_tracker_with_exactly_maximum_interval
Interval of exactly 10800 should be accepted.
tests/integration/test_tracker_workflow.py:802
Method
test_accept_tracker_with_exactly_minimum_interval
Interval of exactly 300 should be accepted (boundary condition). Per code logic: "300 > tracker_candidate.interval" means 300 is NOT rejected
tests/integration/test_tracker_workflow.py:755
Method
test_accept_tracker_with_valid_interval
Verify tracker with interval between 300 and 10800 is accepted.
tests/integration/test_tracker_workflow.py:709
Method
test_accepts_tracker_without_ips
Test that trackers without IPs can still be added.
tests/unit/test_trackon.py:286
Method
test_accepts_valid_interval_maximum
Test that trackers with interval = 10800 seconds are accepted.
tests/unit/test_trackon.py:396
Method
test_accepts_valid_interval_minimum
Test that trackers with interval = 300 seconds are accepted.
tests/unit/test_trackon.py:375
Method
test_accepts_valid_new_tracker
Test that valid new trackers are added to the queue.
tests/unit/test_trackon.py:234
Method
test_accepts_when_no_ips_tracked
Test that trackers are accepted when no IPs are being tracked yet.
tests/unit/test_trackon.py:301
Method
test_add_tracker_to_submitted_queue
Call add_one_tracker_to_submitted_queue with valid URL, verify tracker added to submitted queue.
tests/integration/test_tracker_workflow.py:350
Method
test_adds_cors_header
Should add Access-Control-Allow-Origin header with wildcard.
tests/unit/test_utils.py:24
Method
test_allow_tracker_with_unique_ip
Test that tracker with unique IP is allowed.
tests/integration/test_tracker_workflow.py:563
Method
test_always_appends_announce_path
Should always append /announce path.
tests/unit/test_utils.py:776
Method
test_announce_http_connection_error
Test HTTP announce connection error.
tests/unit/test_scraper.py:295
Method
test_announce_http_empty_response
Test HTTP announce with empty response.
tests/unit/test_scraper.py:313
Method
test_announce_http_invalid_bencoded_response
Test HTTP announce with invalid bencoded response.
tests/unit/test_scraper.py:323
Method
test_announce_http_invalid_status_code
Test HTTP announce with non-200 status code.
tests/unit/test_scraper.py:303
Method
test_announce_http_missing_peers_field
Test HTTP announce with missing peers field.
tests/unit/test_scraper.py:344
Method
test_announce_http_request_exception
Test HTTP announce with generic request exception.
tests/unit/test_scraper.py:363
Method
test_announce_http_response_too_large
Test HTTP announce with response exceeding size limit.
tests/unit/test_scraper.py:355
Method
test_announce_http_success
Test successful HTTP announce.
tests/unit/test_scraper.py:274
Method
test_announce_http_timeout
Test HTTP announce timeout.
tests/unit/test_scraper.py:287
Method
test_announce_http_tracker_failure_reason
Test HTTP announce with tracker failure reason.
tests/unit/test_scraper.py:333
Method
test_announce_http_with_peers6_field
Test HTTP announce with peers6 field instead of peers.
tests/unit/test_scraper.py:1143
Method
test_announce_udp_connect_failure
Test UDP announce when socket connect fails.
tests/unit/test_scraper.py:483
Method
test_announce_udp_connection_refused
Test UDP announce with connection refused.
tests/unit/test_scraper.py:446
Method
test_announce_udp_dns_resolution_error
Test UDP announce with DNS resolution error.
tests/unit/test_scraper.py:437
Method
test_announce_udp_socket_creation_failure
Test UDP announce when socket creation fails.
tests/unit/test_scraper.py:472
Method
test_announce_udp_success
Test successful UDP announce.
tests/unit/test_scraper.py:383
Method
test_announce_udp_timeout
Test UDP announce timeout.
tests/unit/test_scraper.py:459
Method
test_api_add_cors_header
POST /api/add should include CORS header.
tests/integration/test_api_endpoints.py:1080
Method
test_api_content_type
API endpoints should return plain text.
tests/integration/test_api_endpoints.py:1075
Method
test_api_cors_header
API endpoints should include CORS header.
tests/integration/test_api_endpoints.py:1070
Method
test_api_percentage_boundary_100
GET /api/100 should be valid.
tests/integration/test_api_endpoints.py:1098
Method
test_api_percentage_boundary_zero
GET /api/0 should be valid and return all trackers.
tests/integration/test_api_endpoints.py:1093
Method
test_attempt_all_protocols_all_fail
Test when all protocols fail.
tests/unit/test_scraper.py:884
Method
test_attempt_all_protocols_no_port_skips_udp
Test that UDP is skipped when no port is specified.
tests/unit/test_scraper.py:868
Method
test_attempt_all_protocols_udp_fails_http_success
Test when UDP fails but HTTP succeeds.
tests/unit/test_scraper.py:851
Method
test_attempt_all_protocols_udp_success
Test when UDP succeeds.
tests/unit/test_scraper.py:834
Method
test_attempt_from_txt_prefs_all_fail
Test when all preferences fail.
tests/unit/test_scraper.py:940
Method
test_attempt_from_txt_prefs_tcp_success
Test when TCP preference succeeds.
tests/unit/test_scraper.py:922
Method
test_attempt_from_txt_prefs_udp_success
Test when UDP preference succeeds.
tests/unit/test_scraper.py:904
Method
test_attempt_https_http_both_fail
Test when both HTTPS and HTTP fail.
tests/unit/test_scraper.py:814
Method
test_attempt_https_http_https_fails_http_succeeds
Test when HTTPS fails but HTTP succeeds.
tests/unit/test_scraper.py:794
Method
test_attempt_https_http_https_success
Test when HTTPS succeeds.
tests/unit/test_scraper.py:776
Method
test_attempt_httpx_failure
Test failed HTTP attempt.
tests/unit/test_scraper.py:759
Method
test_attempt_httpx_http_success
Test successful HTTP attempt.
tests/unit/test_scraper.py:744
Method
test_attempt_httpx_https_success
Test successful HTTPS attempt.
tests/unit/test_scraper.py:729
Method
test_attempt_submitted_bep34_denies
Test submitted tracker with BEP34 that denies connection.
tests/unit/test_scraper.py:1005
Method
test_attempt_submitted_dns_failure
Test submitted tracker with DNS resolution failure.
tests/unit/test_scraper.py:1021
Method
test_attempt_submitted_no_bep34
Test submitted tracker without BEP34.
tests/unit/test_scraper.py:962
Method
test_attempt_submitted_with_bep34
Test submitted tracker with valid BEP34.
tests/unit/test_scraper.py:984
Method
test_attempt_udp_failure
Test failed UDP attempt.
tests/unit/test_scraper.py:714
Method
test_attempt_udp_success
Test successful UDP attempt.
tests/unit/test_scraper.py:698
Method
test_basic_tcp_record
Should parse basic TCP record.
tests/unit/test_utils.py:616
Method
test_basic_udp_record
Should parse basic UDP record.
tests/unit/test_utils.py:608
Method
test_bdecode_converts_bytes_keys_to_strings
bdecode() should convert bytes keys to string keys.
tests/unit/test_bdecode.py:403
Method
test_bdecode_converts_bytes_values_to_strings
bdecode() should convert bytes values to strings.
tests/unit/test_bdecode.py:412
Method
test_bdecode_empty_peers6_list
bdecode() handles empty peers6 binary data.
tests/unit/test_bdecode.py:672
Method
test_bdecode_empty_peers_list
bdecode() handles empty peers binary data.
tests/unit/test_bdecode.py:666
Method
test_bdecode_integer_raises_runtime_error
bdecode() should raise RuntimeError if root is an integer.
tests/unit/test_bdecode.py:424
Method
test_bdecode_invalid_external_ip_size_raises_error
bdecode() should raise RuntimeError for invalid external IP size.
tests/unit/test_bdecode.py:482
Method
test_bdecode_non_dict_raises_runtime_error
bdecode() should raise RuntimeError if root is not a dict.
tests/unit/test_bdecode.py:418
Method
test_bdecode_preserves_nested_structure_types
Verify bdecode preserves nested list/dict structure.
tests/unit/test_bdecode.py:687
Method
test_bdecode_processes_external_ip_v4
bdecode() should decode external ip field for IPv4.
tests/unit/test_bdecode.py:464
← previous
next →
101–200 of 657, ranked by callers