codeflash/tests
Mohamed Ashraf ecd9267b3f fix: update assertion removal tests for type inference and fix ruff lint
Update 41 test expectations in test_java_assertion_removal.py to match
the return type inference behavior introduced in commit 9e5880f0. Tests
now expect inferred types (int, boolean, String, double) instead of
Object for _cf_result variables.

Fix 2 ruff PLR1714 lint issues in remove_asserts.py by using set
membership tests instead of chained or comparisons.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 14:53:38 +00:00
..
benchmarks merge to main 2026-02-21 01:49:31 +02:00
code_utils merge to main 2026-02-21 01:49:31 +02:00
languages/javascript merge to main 2026-02-21 01:49:31 +02:00
scripts merge to main 2026-02-21 01:49:31 +02:00
test_languages test: update instrumentation test for assertion type inference 2026-03-03 14:41:40 +00:00
test_setup fix: prefer src/ over build output dirs in JS module detection 2026-02-02 19:53:36 -05:00
__init__.py Move aiservice to django/aiservice 2024-01-02 16:55:24 -08:00
conftest.py format and lint all 2026-01-29 01:39:48 -08:00
mymodule.py format and lint all 2026-01-29 01:39:48 -08:00
test_add_needed_imports_from_module.py merge to main 2026-02-21 01:49:31 +02:00
test_add_runtime_comments.py merge to main 2026-02-21 01:49:31 +02:00
test_async_concurrency_decorator.py format and lint all 2026-01-29 01:39:48 -08:00
test_async_function_discovery.py format and lint all 2026-01-29 01:39:48 -08:00
test_async_run_and_parse_tests.py merge to main 2026-02-21 01:49:31 +02:00
test_async_wrapper_sqlite_validation.py format and lint all 2026-01-29 01:39:48 -08:00
test_cleanup_instrumented_files.py fix: handle numbered suffixes in Java instrumented test files 2026-02-03 23:44:17 +00:00
test_cmd_init.py remove test_framework from pyproject.toml (#955) 2025-12-09 02:53:08 -08:00
test_code_context_extractor.py merge to main 2026-02-21 01:49:31 +02:00
test_code_deduplication.py deduplicate optimizations better 2025-09-13 16:03:52 -07:00
test_code_extractor_none_aliases_exact.py merge to main 2026-02-21 01:49:31 +02:00
test_code_replacement.py merge to main 2026-02-21 01:49:31 +02:00
test_code_utils.py merge to main 2026-02-21 01:49:31 +02:00
test_codeflash_capture.py merge to main 2026-02-21 01:49:31 +02:00
test_codeflash_checkpoint.py format and lint all 2026-01-29 01:39:48 -08:00
test_codeflash_trace_decorator.py format and lint all 2026-01-29 01:39:48 -08:00
test_comparator.py merge to main 2026-02-21 01:49:31 +02:00
test_critic.py format and lint all 2026-01-29 01:39:48 -08:00
test_existing_tests_source_for.py format and lint all 2026-01-29 01:39:48 -08:00
test_file_to_no_of_tests.py format and lint all 2026-01-29 01:39:48 -08:00
test_formatter.py fix: update failing unit tests to match current behavior 2026-02-11 13:33:52 +00:00
test_function_dependencies.py merge to main 2026-02-21 01:49:31 +02:00
test_function_discovery.py merge to main 2026-02-21 01:49:31 +02:00
test_function_ranker.py format and lint all 2026-01-29 01:39:48 -08:00
test_get_code.py merge to main 2026-02-21 01:49:31 +02:00
test_get_helper_code.py format and lint all 2026-01-29 01:39:48 -08:00
test_get_read_only_code.py merge to main 2026-02-21 01:49:31 +02:00
test_get_read_writable_code.py merge to main 2026-02-21 01:49:31 +02:00
test_get_testgen_code.py merge to main 2026-02-21 01:49:31 +02:00
test_git_utils.py Add tests for handling detached HEAD state in Git operations 2025-12-18 14:05:04 +02:00
test_humanize_time.py format and lint all 2026-01-29 01:39:48 -08:00
test_init_javascript.py add tests 2026-02-02 23:22:10 +05:30
test_inject_profiling_used_frameworks.py fix tests 2026-02-18 02:08:43 +02:00
test_instrument_all_and_run.py merge to main 2026-02-21 01:49:31 +02:00
test_instrument_async_tests.py merge to main 2026-02-21 01:49:31 +02:00
test_instrument_codeflash_capture.py reinsert 2025-07-29 23:49:22 -07:00
test_instrument_codeflash_trace.py format and lint all 2026-01-29 01:39:48 -08:00
test_instrument_line_profiler.py merge to main 2026-02-21 01:49:31 +02:00
test_instrument_tests.py merge to main 2026-02-21 01:49:31 +02:00
test_instrumentation_run_results_aiservice.py merge to main 2026-02-21 01:49:31 +02:00
test_is_numerical_code.py merge to main 2026-02-21 01:49:31 +02:00
test_java_assertion_removal.py fix: update assertion removal tests for type inference and fix ruff lint 2026-03-03 14:53:38 +00:00
test_java_test_discovery.py better unit test discovery java 2026-02-05 23:57:13 -08:00
test_java_test_filter_validation.py fix(java): fix lint error and broken mock in test_filter_validation 2026-03-03 02:34:30 +00:00
test_java_tests_project_rootdir.py fix: set tests_project_rootdir to tests_root for Java projects 2026-02-04 00:04:23 +00:00
test_javascript_assertion_removal.py refactor: use FunctionToOptimize dataclass instead of raw strings in JS optimization 2026-02-02 01:53:02 -08:00
test_javascript_function_discovery.py merge to main 2026-02-21 01:49:31 +02:00
test_lru_cache_clear.py few manual fixes 2025-02-28 20:24:35 -08:00
test_merge_test_results.py organized imports 2025-03-28 15:26:27 -07:00
test_merge_tests.py update the test-key format 2024-01-22 16:26:32 -08:00
test_multi_file_code_replacement.py merge to main 2026-02-21 01:49:31 +02:00
test_parse_line_profile_test_output.py fix the line profiler implementation 2026-02-17 20:31:00 -08:00
test_parse_pytest_test_failures.py format and lint all 2026-01-29 01:39:48 -08:00
test_parse_test_output_regex.py merge to main 2026-02-21 01:49:31 +02:00
test_pickle_patcher.py merge to main 2026-02-21 01:49:31 +02:00
test_pytest_plugin_deterministic_patches.py update tests 2025-10-28 23:05:26 -07:00
test_reference_graph.py merge to main 2026-02-21 01:49:31 +02:00
test_remove_functions_from_generated_tests.py merge to main 2026-02-21 01:49:31 +02:00
test_remove_unused_definitions.py merge to main 2026-02-21 01:49:31 +02:00
test_shell_utils.py format and lint all 2026-01-29 01:39:48 -08:00
test_static_analysis.py merge to main 2026-02-21 01:49:31 +02:00
test_test_runner.py format and lint all 2026-01-29 01:39:48 -08:00
test_trace_benchmarks.py format and lint all 2026-01-29 01:39:48 -08:00
test_tracer.py format and lint all 2026-01-29 01:39:48 -08:00
test_unit_test_discovery.py format and lint all 2026-01-29 01:39:48 -08:00
test_unused_helper_revert.py merge to main 2026-02-21 01:49:31 +02:00
test_validate_javascript_code.py merge to main 2026-02-21 01:49:31 +02:00
test_validate_python_code.py format and lint all 2026-01-29 01:39:48 -08:00
test_version_check.py format and lint all 2026-01-29 01:39:48 -08:00
test_worktree.py format and lint all 2026-01-29 01:39:48 -08:00