MCPcopy Create free account

hub / github.com/CarterPerez-dev/Cybersecurity-Projects / functions

Functions8,109 in github.com/CarterPerez-dev/Cybersecurity-Projects

Methodtest_reset
Verify reset clears all expressions
PROJECTS/beginner/network-traffic-analyzer/python/tests/test_filters.py:126
Methodtest_result_has_all_metrics
ValidationResult contains precision, recall, f1, pr_auc, roc_auc
PROJECTS/advanced/ai-threat-detection/backend/tests/test_validation.py:101
Functiontest_result_has_component_scores
RuleResult includes individual scores per triggered rule.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_detection.py:221
Methodtest_result_has_per_model_metrics
TrainingResult includes metrics for each model
PROJECTS/advanced/ai-threat-detection/backend/tests/test_orchestrator.py:100
Methodtest_result_roundtrip
RESULT message survives pack -> unpack
PROJECTS/beginner/c2-beacon/backend/tests/test_protocol.py:65
Methodtest_result_with_records
DNSResult correctly stores records and query timing when provided
PROJECTS/beginner/dns-lookup/tests/test_resolver.py:113
Methodtest_results_match_findings
( self, result_with_findings: ScanResult )
PROJECTS/intermediate/dlp-scanner/tests/test_reporters/test_sarif.py:108
Functiontest_retrain_returns_202
POST /models/retrain returns 202 Accepted with a job ID.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_api.py:175
Methodtest_returns_12_char_hex
Version string is a 12-character hex digest
PROJECTS/advanced/ai-threat-detection/backend/tests/test_metadata.py:87
Methodtest_returns_correct_shape
generate_mixed_dataset returns X with 35 columns
PROJECTS/advanced/ai-threat-detection/backend/tests/test_synthetic.py:169
Methodtest_returns_correct_shape
load_csic_dataset returns X with 35 columns and matching y
PROJECTS/advanced/ai-threat-detection/backend/tests/test_data_loader.py:313
Methodtest_returns_highest_confidence
Checks that detect_best returns the same result as the first item from detect_encoding
PROJECTS/beginner/base64-tool/tests/test_detector.py:161
Methodtest_returns_metrics_with_n_samples
Metrics include n_samples matching the training set size.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_training.py:180
Methodtest_returns_model
Training returns a model key in the result dict.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_training.py:166
Methodtest_returns_model_and_metrics
Training returns model and metrics dict.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_training.py:105
Methodtest_returns_model_and_threshold
Training returns model, threshold, scaler, and history keys.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_training.py:43
Methodtest_returns_none_or_string
get_active_window returns None or a string
PROJECTS/beginner/keylogger/test_keylogger.py:331
Methodtest_returns_none_when_no_models
Engine reports is_loaded=False when the model directory does not exist.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_inference.py:81
Methodtest_returns_sorted_by_confidence
Checks that multiple detection results come back sorted highest confidence first
PROJECTS/beginner/base64-tool/tests/test_detector.py:136
Methodtest_returns_training_result
Returns a TrainingResult dataclass
PROJECTS/advanced/ai-threat-detection/backend/tests/test_orchestrator.py:65
Methodtest_returns_training_split
Returns a TrainingSplit dataclass
PROJECTS/advanced/ai-threat-detection/backend/tests/test_splitting.py:54
Methodtest_returns_validation_result
validate_ensemble returns a ValidationResult instance
PROJECTS/advanced/ai-threat-detection/backend/tests/test_validation.py:88
Methodtest_reverse_lookup_google_dns
Reverse lookup for 8.8.8.8 returns a result with nonzero query time
PROJECTS/beginner/dns-lookup/tests/test_resolver.py:198
Functiontest_rooms_create_requires_session
POST /rooms returns 401 with no cookie
PROJECTS/advanced/encrypted-p2p-chat/backend/tests/test_session_auth.py:74
Functiontest_rooms_list_requires_session
GET /rooms returns 401 with no cookie
PROJECTS/advanced/encrypted-p2p-chat/backend/tests/test_session_auth.py:63
Methodtest_root_returns_app_info
Root endpoint returns application name and version
PROJECTS/beginner/c2-beacon/backend/tests/test_app.py:67
Methodtest_rotation_creates_new_file
Writing past max size triggers rotation
PROJECTS/beginner/keylogger/test_keylogger.py:245
Methodtest_roundtrip
XOR applied twice with the same key returns original data
PROJECTS/beginner/c2-beacon/backend/tests/test_encoding.py:24
Methodtest_roundtrip
Encodes then decodes an ASCII sentence and checks it matches the original
PROJECTS/beginner/base64-tool/tests/test_encoders.py:60
Methodtest_roundtrip
Encodes then decodes a URL string and checks it matches the original
PROJECTS/beginner/base64-tool/tests/test_encoders.py:126
Methodtest_roundtrip
Encodes then decodes a short sentence and checks it matches the original
PROJECTS/beginner/base64-tool/tests/test_encoders.py:147
Methodtest_roundtrip
Encodes then decodes a known string and checks no data is lost
PROJECTS/beginner/base64-tool/tests/test_encoders.py:204
Methodtest_roundtrip
Encodes then decodes a URL with a query string and checks it matches the original
PROJECTS/beginner/base64-tool/tests/test_encoders.py:227
Methodtest_roundtrip
Checks that arbitrary binary data survives a base64 encode-decode cycle unchanged
PROJECTS/beginner/base64-tool/tests/test_properties.py:47
Methodtest_roundtrip
Checks that arbitrary binary data survives a base64url encode-decode cycle unchanged
PROJECTS/beginner/base64-tool/tests/test_properties.py:73
Methodtest_roundtrip
Checks that arbitrary binary data survives a base32 encode-decode cycle unchanged
PROJECTS/beginner/base64-tool/tests/test_properties.py:91
Methodtest_roundtrip
Checks that arbitrary binary data survives a hex encode-decode cycle unchanged
PROJECTS/beginner/base64-tool/tests/test_properties.py:117
Methodtest_roundtrip
Checks that arbitrary UTF-8 text survives a URL encode-decode cycle unchanged
PROJECTS/beginner/base64-tool/tests/test_properties.py:142
Methodtest_roundtrip_ascii
ASCII payload survives encode -> decode
PROJECTS/beginner/c2-beacon/backend/tests/test_encoding.py:53
Methodtest_roundtrip_unicode
Unicode payload survives encode -> decode
PROJECTS/beginner/c2-beacon/backend/tests/test_encoding.py:61
Functiontest_rule
Simulate a rule against historical log events and return matches
PROJECTS/intermediate/siem-dashboard/backend/app/controllers/rule_ctrl.py:90
Functiontest_rule
Test a rule against historical log events
PROJECTS/intermediate/siem-dashboard/backend/app/routes/rules.py:88
Functiontest_rule
Create a default test rule
PROJECTS/advanced/api-rate-limiter/tests/conftest.py:857
Methodtest_rule_result_preserved_in_hybrid_mode
( self, trained_model_dir: Path)
PROJECTS/advanced/ai-threat-detection/backend/tests/test_ml_integration.py:185
Methodtest_rules_collected
( self, result_with_findings: ScanResult )
PROJECTS/intermediate/dlp-scanner/tests/test_reporters/test_sarif.py:95
Methodtest_rules_only_uses_rule_score
(self, )
PROJECTS/advanced/ai-threat-detection/backend/tests/test_ml_integration.py:158
Methodtest_run_id_is_none_before_enter
run_id is None until the context manager is entered.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_experiment.py:45
Methodtest_same_file_same_version
Same file produces the same version string
PROJECTS/advanced/ai-threat-detection/backend/tests/test_metadata.py:96
Methodtest_same_rule_not_boosted
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_context.py:84
Functiontest_save_cleans_up_temp_file_on_replace_failure
Verify save() removes the .tmp file when os.replace fails partway through Simulated failure mode: we monkey-patch `os.replace` to raise
PROJECTS/foundations/password-manager/tests/test_vault.py:929
Functiontest_save_creates_temp_file_with_secure_mode_only
Verify the .tmp file is created with mode 0600 from the very first syscall Plain `Path.write_bytes` would create the file with the proce
PROJECTS/foundations/password-manager/tests/test_vault.py:880
Functiontest_save_does_not_leave_temp_file
Verify the .tmp file used during save is gone after save() returns The save flow writes vault.json.tmp first, then renames it onto vault
PROJECTS/foundations/password-manager/tests/test_vault.py:862
Methodtest_save_json_creates_file
save_json writes a non-empty file to the given path.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_scaler.py:90
Methodtest_save_json_is_valid_json
Saved JSON contains center, scale, and n_features keys.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_scaler.py:102
Functiontest_save_processed_docx_metadata
Test saving processed Word document to output path.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_worddoc_handler.py:64
Functiontest_save_processed_docx_metadata_via_factory
Test saving processed Word document metadata through MetadataFactory.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:275
Functiontest_save_processed_excel_metadata
Test saving processed Excel to output path.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_excel_handler.py:66
Functiontest_save_processed_excel_metadata_via_factory
Test saving processed Excel metadata through MetadataFactory.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:162
Functiontest_save_processed_image_metadata
Test saving processed image metadata through factory.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:65
Functiontest_save_processed_image_metadata
test for saving image processed metadata to a copy of the file
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_image_handler.py:58
Functiontest_save_processed_pdf_metadata
Test saving processed PDF to output path.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_pdf_handler.py:67
Functiontest_save_processed_pdf_metadata_via_factory
Test saving processed PDF metadata through MetadataFactory.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:115
Functiontest_save_processed_pptx_metadata
Test saving processed PowerPoint to output path.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_powerpoint_handler.py:64
Functiontest_save_processed_pptx_metadata_via_factory
Test saving processed PowerPoint metadata through MetadataFactory.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:216
Functiontest_save_uses_fresh_nonce_each_time
Verify two consecutive saves produce different ciphertext (because the nonce is fresh) The save path internally regenerates a nonce on every
PROJECTS/foundations/password-manager/tests/test_vault.py:841
Functiontest_save_with_none_raises_error
Test that save() raises ValueError when output_path is None.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_powerpoint_handler.py:170
Functiontest_save_with_none_raises_error
Test that save() raises ValueError when output_path is None.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_worddoc_handler.py:170
Functiontest_save_with_none_raises_error
Test that save() raises ValueError when output_path is None.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_excel_handler.py:169
Functiontest_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is empty.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:315
Functiontest_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is None.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_pdf_handler.py:144
Functiontest_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is empty.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_powerpoint_handler.py:159
Functiontest_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is None
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_image_handler.py:101
Functiontest_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is empty.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_worddoc_handler.py:159
Functiontest_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is None or empty.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_excel_handler.py:158
Methodtest_scaler_json_has_required_keys
scaler.json contains center, scale, and n_features
PROJECTS/advanced/ai-threat-detection/backend/tests/test_orchestrator.py:75
Methodtest_scan_clean_file_no_findings
( self, file_scanner: FileScanner, temp_dir_with_pii: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:50
Methodtest_scan_completed_at_is_set
( self, file_scanner: FileScanner, temp_dir: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:106
Methodtest_scan_console_output
(self, pii_dir: Path)
PROJECTS/intermediate/dlp-scanner/tests/test_cli.py:139
Methodtest_scan_database_sqlite
(self, engine: ScanEngine)
PROJECTS/intermediate/dlp-scanner/tests/test_engine.py:114
Methodtest_scan_directory_finds_pii
( self, file_scanner: FileScanner, temp_dir_with_pii: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:31
Methodtest_scan_empty_directory
( self, file_scanner: FileScanner, temp_dir: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:67
Methodtest_scan_files_clean_dir
( self, engine: ScanEngine, clean_dir: Path )
PROJECTS/intermediate/dlp-scanner/tests/test_engine.py:94
Methodtest_scan_files_finds_pii
( self, engine: ScanEngine, pii_dir: Path )
PROJECTS/intermediate/dlp-scanner/tests/test_engine.py:86
Methodtest_scan_files_nonexistent
(self, engine: ScanEngine)
PROJECTS/intermediate/dlp-scanner/tests/test_engine.py:102
Methodtest_scan_files_sets_completed_at
( self, engine: ScanEngine, pii_dir: Path )
PROJECTS/intermediate/dlp-scanner/tests/test_engine.py:106
Functiontest_scan_flags_missing_and_weak_headers
A response missing CSP and with a weak X-Content-Type-Options should produce findings of mixed status
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:346
Methodtest_scan_json_finds_api_key
( self, file_scanner: FileScanner, temp_dir_with_pii: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:150
Methodtest_scan_json_output
(self, pii_dir: Path)
PROJECTS/intermediate/dlp-scanner/tests/test_cli.py:143
Functiontest_scan_mocks_a_clean_response_and_grades_it_correctly
A response with every recommended header set should score 100
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:314
Methodtest_scan_nonexistent_target
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_cli.py:176
Methodtest_scan_nonexistent_target
( self, file_scanner: FileScanner, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:60
Functiontest_scan_records_final_url_after_redirect
When http://x.example.com/ → https://x.example.com/, the report must remember the final URL — that is what the user actually landed on
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:380
Methodtest_scan_respects_exclude_patterns
( self, temp_dir: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:76
Methodtest_scan_respects_max_file_size
( self, temp_dir: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:91
Methodtest_scan_single_file
( self, file_scanner: FileScanner, temp_dir_with_pii: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:40
Methodtest_scan_to_file
(self, pii_dir: Path)
PROJECTS/intermediate/dlp-scanner/tests/test_cli.py:155
Methodtest_scanner_returns_correct_count
generate_scanner_requests returns the requested count
PROJECTS/advanced/ai-threat-detection/backend/tests/test_synthetic.py:81
Functiontest_scanner_ua_contributes
Known scanner UA fires the SCANNER_UA rule.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_detection.py:143
Methodtest_scoped_limiter_applies_default_rules
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_integration.py:404
Methodtest_scoped_limiter_endpoint_specific_rules
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_integration.py:432
← previousnext →7,601–7,700 of 8,109, ranked by callers