Skip to content

fix: correct calculation of execution paths total#11

Merged
k1LoW merged 1 commit into
mainfrom
fix-calc
Sep 8, 2025
Merged

fix: correct calculation of execution paths total#11
k1LoW merged 1 commit into
mainfrom
fix-calc

Conversation

@k1LoW
Copy link
Copy Markdown
Contributor

@k1LoW k1LoW commented Sep 8, 2025

This pull request updates the calculation of total execution paths in the Metrics function to more accurately account for the number of steps and test cases. Instead of raising the number of steps to the power of test count, it now multiplies the number of steps by 2 raised to the power of test count.

Calculation logic improvement:

  • Updated the calculation of executionPathsTotal in the Metrics function in tailor/metrics.go to use len(r.Steps) * int(math.Pow(2, float64(testsCount))) instead of int(math.Pow(float64(len(r.Steps)), float64(testsCount))), providing a more accurate representation of execution paths.

@k1LoW k1LoW self-assigned this Sep 8, 2025
@k1LoW k1LoW added the bug Something isn't working label Sep 8, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 8, 2025

Code Metrics Report

Coverage Code to Test Ratio
34.7% 1:1.8

Code coverage of files in pull request scope (100.0%)

Files Coverage
tailor/metrics.go 100.0%

Reported by octocov

@k1LoW k1LoW merged commit 108113d into main Sep 8, 2025
1 check passed
@k1LoW k1LoW deleted the fix-calc branch September 8, 2025 14:56
@github-actions github-actions Bot mentioned this pull request Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant