Split SafeDIToolMockGenerationTests into focused test files#223
Merged
Conversation
Break up the 12,650-line monolithic test file into 6 focused files to improve readability and navigability for both humans and agents. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #223 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 40 40
Lines 6128 6128
=========================================
Hits 6128 6128 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SafeDIToolMockGenerationTests.swiftinto 6 focused files to improve readability and navigabilityFile breakdown
SafeDIToolMockGenerationTests.swiftSafeDIToolMockGenerationCustomMockTests.swiftSafeDIToolMockGenerationDefaultValueTests.swiftSafeDIToolMockGenerationDisambiguationTests.swiftSafeDIToolMockGenerationConfigurationTests.swiftgenerateMockflag, conditional compilation, attributesSafeDIToolMockGenerationErrorTests.swiftTests moved to
SafeDIToolMockGenerationErrorTests.swiftmock_misconfiguredMockMethodEmitsCommentmock_mockMethodMissingDependencyEmitsCommentmock_parseErrorWritesErrorStubToMockOutputsTests moved to
SafeDIToolMockGenerationCustomMockTests.swiftmock_generatedWithCustomMockCallThrough_whenTypeHasExistingMockMethodAndCustomMockNamemock_generatedWhenTypeHasExistingMockMethodWithCustomMockNameAndGenerateMockmock_generatedWhenTypeHasNonStaticMockMethodmock_usesExistingMockMethodInChildConstructionmock_existingMockMethodCoexistsWithNonMockChildrenmock_existingMockMethodInDeepTreemock_existingMockMethodOnExtensionBasedTypemock_existingMockMethodOnExtensionBasedTypeWithReversedSourceOrdermock_existingMockMethodWithMultipleDependenciesmock_existingMockMethodWithReversedParameterOrdermock_existingMockMethodSkipsGenerationForTypeButGeneratesForParentmock_defaultValuedParameterOnTypeWithExistingMockmock_uncoveredDependencyEvaluatedBeforePassingToUserMockmock_typeWithUserMockAndOnlyDefaultValuedParamsGeneratesCallThrough_whenCustomMockNameIsSetmock_userMockDependencyIsOptionalParameterWhenFulfillableFromTreemock_userMockDependencyBecomesRequiredParameterWhenNotFulfillablemock_userMockOnlyIfAvailableDependencyUsesNilDefaultWhenNotFulfillablemock_userMockReturningAdditionalTypeUsedForProtocolPropertymock_userMockReturningAdditionalTypeNotUsedForConcretePropertymock_extensionUserMockReturningAdditionalTypeUsedForProtocolPropertymock_extensionUserMockReturningAdditionalTypeNotUsedForConcretePropertymock_generatedMockCallsThroughToHandWrittenMockmock_generatedMockDoesNotExposeInitDefaultsNotOnHandWrittenMockmock_generatedMockExposesHandWrittenMockExtraParamsmock_generatedMockCallsThroughToHandWrittenMockForExtensionmock_bubblesCustomMockDependencyDefault_whenForwardedPropertyReceivedByChildmock_nearestReceiverDefaultWins_whenMultipleChildrenAtSameDepthmock_forwardedPropertyDefaultBubblesAcrossThreeLevels_eachWithCustomMockmock_doesNotBubbleDefault_whenNoChildHasCustomMockmock_doesNotApplyDefaultFromWrongType_whenSameLabelDifferentTypesTests moved to
SafeDIToolMockGenerationDefaultValueTests.swiftmock_defaultValuedParameterBubblesUpToRootMockmock_defaultValuedParameterUsesOriginalDefaultExpressionmock_defaultValuedParameterDoesNotBubbleThroughInstantiatormock_defaultValuedParameterBubblesFromGrandchildToRootmock_defaultValuedParameterOnRootTypemock_defaultValuedParameterDoesNotBubbleThroughSendableInstantiatormock_multipleDefaultValuedParametersFromDifferentChildrenmock_defaultValuedParameterWithNilDefaultmock_defaultValuedParameterDisambiguatedWhenLabelCollidesmock_defaultValuedParameterDoesNotBubbleThroughErasedInstantiatormock_defaultValuedParameterDoesNotBubbleThroughSendableErasedInstantiatormock_defaultValuedParameterWithComplexDefaultmock_childDefaultParamDoesNotReEvaluateRootBoundLabelmock_disambiguatedDefaultParamsFromDifferentChildrenDoNotCollideAtRootmock_defaultValuedParametersFromMultipleLevelsAllAppearAtRootmock_defaultValuedParameterFromGrandchildStopsAtInstantiatorBoundarymock_defaultValuedClosureParameterStripsEscapingmock_defaultValuedMainActorClosurePreservesMainActormock_defaultValuedSendableClosurePreservesSendablemock_defaultValuedParamDoesNotSuppressReceivedPropertyBindingmock_forwardedParamDoesNotCollideWithBubbledDefaultmock_usesOuterLabel_whenDefaultValuedParameterHasUnderscoreInnerLabelmock_doesNotBubbleDefaultValuedParameter_whenOuterLabelIsUnderscoremock_doesNotBubbleDefaultValuedParameter_whenOnlyLabelIsUnderscoreTests moved to
SafeDIToolMockGenerationDisambiguationTests.swiftmock_disambiguatesParameters_whenInstantiatorLabelCollidesWithTypeNamemock_disambiguatesParameterLabelsWhenSameInitLabelAppearsTwicemock_disambiguationUsesSimplifiedSuffixWhenUniquemock_disambiguationFallsBackToFullSuffixWhenSimplifiedCollidesmock_disambiguatedParamUsedInInstantiatorBuilderFunctionmock_disambiguatedInstantiatorBindingUsesDisambiguatedLocalNamemock_disambiguatedInstantiatorResolvedBySiblingInNestedBuildermock_disambiguatedInstantiatorResolvedThroughIntermediateInstantiatorBuildermock_disambiguatedInstantiatorInDeepNestedBuilderUsesResolvedNamemock_disambiguatedAutoclosureEvaluatedInInstantiatorBuildermock_disambiguatedUncoveredDependencyInNestedInstantiatormock_onlyIfAvailableDisambiguatedSimplifiedUniquemock_closureTypedDefaultDisambiguatedmock_disambiguatesAllParameters_whenThreeChildrenShareSameLabelmock_disambiguatedInstantiatorResolvedFromRootInNestedScopemock_postDisambiguationLabelDoesNotCollideWithExistingPropertyLabelmock_aliasedBindingUsesDisambiguatedFulfillingPropertyLabelmock_disambiguationFallsBackToFullSuffixWhenSimplifiedSuffixesCollideTests moved to
SafeDIToolMockGenerationConfigurationTests.swiftmock_respectsMockConditionalCompilationNilmock_respectsCustomMockConditionalCompilationmock_typeWithDependenciesAndNilConditionalCompilationmock_respectsMockAttributesmock_extensionBasedWithNilConditionalCompilationmock_extensionBasedTypeRespectsMockAttributesmock_generatedForType_whenGenerateMockIsTruemock_generatedForType_whenEnableMockGenerationIsTruemock_notGeneratedForType_whenGenerateMockIsDefaultmock_notGeneratedForType_whenGenerateMockIsFalsemock_generatedOnlyForOptedInTypes_whenMixOfGenerateMockValuesmock_crossModuleTypeWithGenerateMockIsSkippedTest plan
🤖 Generated with Claude Code