Skip to content

Commit

Permalink
Add test cases for SavedPaymentMethodMutator. (#9732)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaynewstrom-stripe authored Dec 3, 2024
1 parent 2edfbfb commit e9b5f70
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 13 deletions.
4 changes: 0 additions & 4 deletions payments-core/detekt-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@
<ID>MagicNumber:CardInputWidgetPlacement.kt$CardInputWidgetPlacement$3</ID>
<ID>MagicNumber:CardInputWidgetPlacement.kt$CardInputWidgetPlacement$4</ID>
<ID>MagicNumber:CardInputWidgetPlacement.kt$CardInputWidgetPlacement$5</ID>
<ID>MagicNumber:DateUtils.kt$DateUtils$100</ID>
<ID>MagicNumber:DateUtils.kt$DateUtils$12</ID>
<ID>MagicNumber:DateUtils.kt$DateUtils$20</ID>
<ID>MagicNumber:DateUtils.kt$DateUtils$80</ID>
<ID>MagicNumber:ExpirationDate.kt$ExpirationDate.Unvalidated$3</ID>
<ID>MagicNumber:PaymentAuthConfig.kt$PaymentAuthConfig.Stripe3ds2Config$5</ID>
<ID>MagicNumber:PaymentAuthConfig.kt$PaymentAuthConfig.Stripe3ds2Config$99</ID>
Expand Down
1 change: 1 addition & 0 deletions paymentsheet/detekt-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<ID>LargeClass:PaymentOptionsViewModelTest.kt$PaymentOptionsViewModelTest</ID>
<ID>LargeClass:PaymentSheetActivityTest.kt$PaymentSheetActivityTest</ID>
<ID>LargeClass:PaymentSheetViewModelTest.kt$PaymentSheetViewModelTest</ID>
<ID>LargeClass:SavedPaymentMethodMutatorTest.kt$SavedPaymentMethodMutatorTest</ID>
<ID>LargeClass:USBankAccountFormViewModelTest.kt$USBankAccountFormViewModelTest</ID>
<ID>LongMethod:AutocompleteScreen.kt$@Composable internal fun AutocompleteScreenUI(viewModel: AutocompleteViewModel)</ID>
<ID>LongMethod:ConfirmationOptionKtx.kt$internal fun PaymentSelection.toConfirmationOption( initializationMode: PaymentElementLoader.InitializationMode, configuration: CommonConfiguration, appearance: PaymentSheet.Appearance, ): ConfirmationHandler.Option?</ID>
Expand Down
Loading

0 comments on commit e9b5f70

Please sign in to comment.