Skip to content

Conversation

@aseembits93
Copy link
Contributor

@aseembits93 aseembits93 commented Nov 12, 2025

PR Type

Enhancement


Description

  • Track generated tests count per file

  • Integrate Counter for aggregation

  • Filter by excluded test functions

  • Prepare data for display decisions


Diagram Walkthrough

flowchart LR
  A["behavior_test_results"] -- iterate --> B["filter unit tests and not removed"]
  B -- aggregate --> C["Counter: file_name -> count"]
  C -- supports --> D["display/decision logic downstream"]
Loading

File Walkthrough

Relevant files
Enhancement
function_optimizer.py
Add Counter to tally generated tests per file                       

codeflash/optimization/function_optimizer.py

  • Import Counter alongside defaultdict.
  • Build Counter mapping file to test count.
  • Iterate behavior_test_results with filtering.
  • Exclude removed test functions from counts.
+8/-1     

@aseembits93 aseembits93 changed the title dont display file if there are no test functions passing for that file dont display generated file if there are no test functions passing for that file Nov 12, 2025
@aseembits93 aseembits93 marked this pull request as draft November 12, 2025 04:53
@aseembits93 aseembits93 marked this pull request as ready for review November 13, 2025 00:49
@aseembits93 aseembits93 requested a review from KRRT7 November 13, 2025 00:55
@aseembits93
Copy link
Contributor Author

#903 for reference

@codeflash-ai codeflash-ai deleted a comment from github-actions bot Nov 13, 2025
@codeflash-ai codeflash-ai deleted a comment from github-actions bot Nov 13, 2025
@aseembits93 aseembits93 merged commit 16ff462 into main Nov 13, 2025
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants