github.com/stripe/stripe-go/v76@v76.25.0/setupattempt/client_test.go (about) 1 package setupattempt 2 3 import ( 4 "testing" 5 6 assert "github.com/stretchr/testify/require" 7 stripe "github.com/stripe/stripe-go/v76" 8 _ "github.com/stripe/stripe-go/v76/testing" 9 ) 10 11 func TestSetupAttemptList(t *testing.T) { 12 params := &stripe.SetupAttemptListParams{ 13 SetupIntent: stripe.String("seti_123"), 14 } 15 i := List(params) 16 17 // Verify that we can get at least one setup attempt 18 assert.True(t, i.Next()) 19 assert.Nil(t, i.Err()) 20 assert.NotNil(t, i.SetupAttempt()) 21 assert.NotNil(t, i.SetupAttemptList()) 22 }