This issue tracks the test files generated by the test-enhancer agent for NamingHelper and TokenHelper, two static utility classes with 0% coverage before this run.
Coverage Before
| Class |
Coverage Before |
CobolToQuarkusMigration.Helpers.NamingHelper |
0% |
CobolToQuarkusMigration.Helpers.TokenHelper |
0% |
Test Files Generated
Two new test files were created locally on branch test-enhancer/naming-helper-token-helper but could not be pushed due to missing git credentials in the runner environment.
CobolToQuarkusMigration.Tests/Helpers/NamingHelperTests.cs
34 tests covering:
ToPascalCase — normal input, separator chars, null/empty/whitespace
DeriveClassNameFromCobolFile — standard COBOL names, underscore-separated, digit-start, empty/null
GetFallbackClassName — appends Fallback suffix
GetOutputFileName — .cs and .java extensions
IsValidIdentifier — valid identifiers, digit-start, hyphens, spaces
IsSemanticClassName — semantic suffixes, generic names, null/empty
ExtractCSharpClassName — valid class, generic class fallback, no class declaration
ExtractJavaClassName — public class, generic class fallback
ReplaceGenericClassName — class declaration, constructor calls, same-name no-op
CobolToQuarkusMigration.Tests/Helpers/TokenHelperTests.cs
34 tests covering:
EstimateTokens — null/empty returns 0, positive count, longer = more tokens
EstimateCobolTokens — null/empty, positive count
TruncateToTokenLimit — empty, within limit, exceeds limit, preserve start/end
TruncateCobolIntelligently — empty, within limit, large content
CalculateRequestDelay — normal limits, minimum, maximum cap, zero limit
GetRateLimitSummary — non-empty output
- Constants
CharsPerToken and SafetyMargin
All 68 new tests pass. The 15 pre-existing failures in CopilotChatClientTests are unrelated (async disposal issue) and were already failing before this run.
Next Recommended Targets
CobolToQuarkusMigration.Chunking.Core.NamingConventionEnforcer — pure logic, no external deps
CobolToQuarkusMigration.Helpers.RateLimiter — needs careful async mocking
CobolToQuarkusMigration.Helpers.FileHelper — file system interactions, mockable
To Apply
Apply the generated tests manually or re-run the test-enhancer agent (cache memory has been updated to skip already-processed targets).
Generated by Test Enhancement Agent
This issue tracks the test files generated by the test-enhancer agent for
NamingHelperandTokenHelper, two static utility classes with 0% coverage before this run.Coverage Before
CobolToQuarkusMigration.Helpers.NamingHelperCobolToQuarkusMigration.Helpers.TokenHelperTest Files Generated
Two new test files were created locally on branch
test-enhancer/naming-helper-token-helperbut could not be pushed due to missing git credentials in the runner environment.CobolToQuarkusMigration.Tests/Helpers/NamingHelperTests.cs34 tests covering:
ToPascalCase— normal input, separator chars, null/empty/whitespaceDeriveClassNameFromCobolFile— standard COBOL names, underscore-separated, digit-start, empty/nullGetFallbackClassName— appendsFallbacksuffixGetOutputFileName—.csand.javaextensionsIsValidIdentifier— valid identifiers, digit-start, hyphens, spacesIsSemanticClassName— semantic suffixes, generic names, null/emptyExtractCSharpClassName— valid class, generic class fallback, no class declarationExtractJavaClassName— public class, generic class fallbackReplaceGenericClassName— class declaration, constructor calls, same-name no-opCobolToQuarkusMigration.Tests/Helpers/TokenHelperTests.cs34 tests covering:
EstimateTokens— null/empty returns 0, positive count, longer = more tokensEstimateCobolTokens— null/empty, positive countTruncateToTokenLimit— empty, within limit, exceeds limit, preserve start/endTruncateCobolIntelligently— empty, within limit, large contentCalculateRequestDelay— normal limits, minimum, maximum cap, zero limitGetRateLimitSummary— non-empty outputCharsPerTokenandSafetyMarginAll 68 new tests pass. The 15 pre-existing failures in
CopilotChatClientTestsare unrelated (async disposal issue) and were already failing before this run.Next Recommended Targets
CobolToQuarkusMigration.Chunking.Core.NamingConventionEnforcer— pure logic, no external depsCobolToQuarkusMigration.Helpers.RateLimiter— needs careful async mockingCobolToQuarkusMigration.Helpers.FileHelper— file system interactions, mockableTo Apply
Apply the generated tests manually or re-run the test-enhancer agent (cache memory has been updated to skip already-processed targets).