stripe-android icon indicating copy to clipboard operation
stripe-android copied to clipboard

Add detaching payment method test in `CustomerSheetTest`

Open samer-stripe opened this issue 1 year ago • 1 comments

Summary

Add detaching payment method test in CustomerSheetTest

Motivation

Tests detaching payment method logic in CustomerSheet

Testing

  • [x] Added tests
  • [ ] Modified tests
  • [ ] Manually verified

samer-stripe avatar Apr 16 '24 14:04 samer-stripe

Diffuse output:

OLD: paymentsheet-example-release-master.apk (signature: V1, V2)
NEW: paymentsheet-example-release-pr.apk (signature: V1, V2)

          │          compressed           │         uncompressed          
          ├───────────┬───────────┬───────┼───────────┬───────────┬───────
 APK      │ old       │ new       │ diff  │ old       │ new       │ diff  
──────────┼───────────┼───────────┼───────┼───────────┼───────────┼───────
      dex │     4 MiB │     4 MiB │ -67 B │   8.7 MiB │   8.7 MiB │ +84 B 
     arsc │   2.2 MiB │   2.2 MiB │   0 B │   2.2 MiB │   2.2 MiB │   0 B 
 manifest │   5.1 KiB │   5.1 KiB │   0 B │  25.8 KiB │  25.8 KiB │   0 B 
      res │ 910.1 KiB │ 910.1 KiB │   0 B │   1.4 MiB │   1.4 MiB │   0 B 
   native │   2.6 MiB │   2.6 MiB │   0 B │     6 MiB │     6 MiB │   0 B 
    asset │   2.9 MiB │   2.9 MiB │ +14 B │   2.9 MiB │   2.9 MiB │ +14 B 
    other │ 194.3 KiB │ 194.3 KiB │  -9 B │ 424.7 KiB │ 424.7 KiB │   0 B 
──────────┼───────────┼───────────┼───────┼───────────┼───────────┼───────
    total │  12.8 MiB │  12.8 MiB │ -62 B │  21.7 MiB │  21.7 MiB │ +98 B 

 DEX     │ old   │ new   │ diff       
─────────┼───────┼───────┼────────────
   files │     1 │     1 │  0         
 strings │ 43355 │ 43355 │  0 (+2 -2) 
   types │ 14905 │ 14905 │  0 (+0 -0) 
 classes │ 12595 │ 12595 │  0 (+0 -0) 
 methods │ 61642 │ 61643 │ +1 (+9 -8) 
  fields │ 40639 │ 40639 │  0 (+2 -2) 

 ARSC    │ old  │ new  │ diff 
─────────┼──────┼──────┼──────
 configs │  242 │  242 │  0   
 entries │ 6033 │ 6033 │  0
APK
    compressed    │   uncompressed    │                                           
──────────┬───────┼───────────┬───────┤                                           
 size     │ diff  │ size      │ diff  │ path                                      
──────────┼───────┼───────────┼───────┼───────────────────────────────────────────
    4 MiB │ -67 B │   8.7 MiB │ +84 B │ ∆ classes.dex                             
  7.4 KiB │ +14 B │   7.3 KiB │ +14 B │ ∆ assets/dexopt/baseline.prof             
 52.8 KiB │  -6 B │ 116.9 KiB │   0 B │ ∆ META-INF/CERT.SF                        
 49.5 KiB │  -3 B │ 116.8 KiB │   0 B │ ∆ META-INF/MANIFEST.MF                    
    271 B │  -1 B │     120 B │   0 B │ ∆ META-INF/version-control-info.textproto 
  1.2 KiB │  +1 B │   1.2 KiB │   0 B │ ∆ META-INF/CERT.RSA                       
──────────┼───────┼───────────┼───────┼───────────────────────────────────────────
  4.1 MiB │ -62 B │   8.9 MiB │ +98 B │ (total)
DEX
STRINGS:

   old   │ new   │ diff      
  ───────┼───────┼───────────
   43355 │ 43355 │ 0 (+2 -2) 
  
  + PaymentSheetEditButton
  + ~~R8{backend:dex,compilation-mode:release,has-checksums:false,min-api:21,pg-map-id:43d6930,r8-mode:full,version:8.3.37}
  
  - VLLLZLLL
  - ~~R8{backend:dex,compilation-mode:release,has-checksums:false,min-api:21,pg-map-id:55289c0,r8-mode:full,version:8.3.37}
  

METHODS:

   old   │ new   │ diff       
  ───────┼───────┼────────────
   61642 │ 61643 │ +1 (+9 -8) 
  
  + A9.a <init>(int, Object)
  + N8.n <init>(int, Object, boolean)
  + P0.s <init>(int, Object, boolean)
  + P0.s <init>(c, boolean)
  + V.S0 <init>(a, String, boolean)
  + V.S <init>(int, Object, boolean)
  + Z7.R1 <init>(String, a, a, String, boolean, String, String)
  + e0.n0 q(int, k, boolean) → b
  + t.s <init>(int, Object, boolean)
  
  - A9.a <init>(Object, int)
  - N8.n <init>(Object, boolean, int)
  - P0.s <init>(Object, boolean, int)
  - P0.s <init>(boolean, Object, int)
  - V.S <init>(boolean, Object, int)
  - Z7.R1 <init>(String, a, a, boolean, String, String, String)
  - e0.n0 q(k, boolean, int) → b
  - t.s <init>(Object, boolean, int)
  

FIELDS:

   old   │ new   │ diff      
  ───────┼───────┼───────────
   40639 │ 40639 │ 0 (+2 -2) 
  
  + Z7.R1 W: String
  + Z7.R1 X: boolean
  
  - Z7.R1 W: boolean
  - Z7.R1 X: String

github-actions[bot] avatar Apr 16 '24 14:04 github-actions[bot]