| Test case: | tests unit/helper/statment_descriptor_test.dart StatementDescriptor: StatementDescriptor with default prefix |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.016 sec |
|---|
| Test case: | tests unit/helper/statment_descriptor_test.dart StatementDescriptor: StatementDescriptor with long pledgeId |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/helper/stripe_payment_amount_test.dart StripePaymentAmount ok: 1[100] (0) usd @ 5.0% |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.005 sec |
|---|
| Test case: | tests unit/helper/stripe_payment_amount_test.dart StripePaymentAmount ok: 1[1] (0) jpy @ 3.0% |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.001 sec |
|---|
| Test case: | tests unit/helper/stripe_payment_amount_test.dart StripePaymentAmount notOk: 0[0] (0) usd @ 5.0% |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.017 sec |
|---|
Stdout ERROR
ERROR #0 new StripePaymentAmount.fromModel (package:payments/helper/stripe_payment_amount.dart:20:11)
ERROR #1 runStripePaymentAmountUnitTests.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///d:/working/flipdare/code/packages/payments/test/unit/helper/stripe_payment_amount_test.dart:48:39)
ERROR
ERROR Pledge unit must be greater than 0
ERROR
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse helper functions URL and basic properties should return url from request |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.016 sec |
|---|
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse helper functions URL and basic properties should return null when no request |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.004 sec |
|---|
StdoutWARNING
WARNING #0 StripeResponse.url (package:payments/helper/stripe_response.dart:31:11)
WARNING #1 _runHelperFunctionsUnitTests.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///d:/working/flipdare/code/packages/payments/test/unit/helper/stripe_response_test.dart:145:31)
WARNING
WARNING Stripe response has no request URL: MockChopperResponse<String>
WARNING
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse helper functions URL and basic properties should return status code from response |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.003 sec |
|---|
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse helper functions URL and basic properties should return success status from response |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.005 sec |
|---|
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse helper functions pretty URL formatting should return pretty URL when available |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.003 sec |
|---|
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse helper functions pretty URL formatting should return "Unknown URL" when no URL available |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.004 sec |
|---|
StdoutWARNING
WARNING #0 StripeResponse.url (package:payments/helper/stripe_response.dart:31:11)
WARNING #1 StripeResponse.pretty (package:payments/helper/stripe_response.dart:40:24)
WARNING
WARNING Stripe response has no request URL: MockChopperResponse<String>
WARNING
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse helper functions debug and error messages should return formatted cause string |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse helper functions debug and error messages should return formatted debug message |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse helper functions data processing should return data from successful response |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.006 sec |
|---|
Stdout INFO
INFO #0 StripeResponse.result (package:payments/helper/stripe_response.dart:75:11)
INFO #1 StripeResponse.data (package:payments/helper/stripe_response.dart:50:21)
INFO
INFO Stripe response (200) from url "https://api.stripe.com/v1/charges" OK
INFO
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse helper functions data processing should throw PaymentException when generator fails |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.006 sec |
|---|
Stdout INFO
INFO #0 StripeResponse.result (package:payments/helper/stripe_response.dart:75:11)
INFO #1 StripeResponse.data (package:payments/helper/stripe_response.dart:50:21)
INFO
INFO Stripe response (200) from url "https://api.stripe.com/v1/charges" OK
INFO
WARNING
WARNING #0 StripeResponse.data (package:payments/helper/stripe_response.dart:55:11)
WARNING #1 _runHelperFunctionsUnitTests.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///d:/working/flipdare/code/packages/payments/test/unit/helper/stripe_response_test.dart:228:37)
WARNING
WARNING Hmm. we encountered a strange error decoding the response from Stripe
WARNING Url: MockChopperResponse<String>
WARNING Status code: 200
WARNING Error: null
WARNING Response body: {"other": "value"}
WARNING
WARNING | Test case: | tests unit/helper/stripe_response_test.dart StripeResponse result getter should return successful result |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.004 sec |
|---|
Stdout INFO
INFO #0 StripeResponse.result (package:payments/helper/stripe_response.dart:75:11)
INFO #1 _runResultUnitTests.<anonymous closure>.<anonymous closure> (file:///d:/working/flipdare/code/packages/payments/test/unit/helper/stripe_response_test.dart:249:37)
INFO
INFO Stripe response (200) from url "https://api.stripe.com/v1/charges" OK
INFO
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse result getter should throw PaymentException for unsuccessful response |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.005 sec |
|---|
StdoutWARNING
WARNING #0 StripeResponse.checkIfRedirectError (package:payments/helper/stripe_response.dart:148:9)
WARNING #1 StripeResponse.result (package:payments/helper/stripe_response.dart:89:5)
WARNING
WARNING Stripe error N/A, N/A - N/AN/A
WARNING Url: https://api.stripe.com/v1/charges
WARNING Code: 400
WARNING Response: {"error": "bad request"}
WARNING Error: null
WARNING | Test case: | tests unit/helper/stripe_response_test.dart StripeResponse result getter should throw PaymentException for non-decodable response |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.009 sec |
|---|
Stdout INFO
INFO #0 StripeResponse.result (package:payments/helper/stripe_response.dart:75:11)
INFO #1 _runResultUnitTests.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///d:/working/flipdare/code/packages/payments/test/unit/helper/stripe_response_test.dart:264:35)
INFO
INFO Stripe response (200) from url "https://api.stripe.com/v1/charges" OK
INFO
WARNING
WARNING #0 JsonUtil.isJson (package:core/helper/json_util.dart:66:11)
WARNING #1 UrlResponse.formatChopper (package:core/http/url_response.dart:20:19)
WARNING
WARNING Failed to decode JSON: invalid json: FormatException: Unexpected character (at character 1)
WARNING invalid json
WARNING ^
WARNING
WARNING
ERROR
ERROR #0 UrlResponse.formatChopper (package:core/http/url_response.dart:21:11)
ERROR #1 StripeResponse.result (package:payments/helper/stripe_response.dart:77:28)
ERROR
ERROR Stripe response body is not a valid JSON for url "https://api.stripe.com/v1/charges"
ERROR body=invalid json
ERROR debugMsg=Url: https://api.stripe.com/v1/charges
ERROR Code: 200
ERROR Response: invalid json
ERROR Error: null
ERROR
WARNING
WARNING #0 StripeResponse.checkIfRedirectError (package:payments/helper/stripe_response.dart:148:9)
WARNING #1 StripeResponse.result (package:payments/helper/stripe_response.dart:89:5)
WARNING
WARNING Stripe error N/A, N/A - N/AN/A
WARNING Url: https://api.stripe.com/v1/charges
WARNING Code: 200
WARNING Response: invalid json
WARNING Error: null
WARNING
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse decodeStripeResponse should decode successful response |
|---|
| Outcome: | Failed |
|---|
| Duration: | 0.019 sec |
|---|
| Failed | 1 failure, see stacktrace for details |
|---|
Failure:
Expected: 'success'
Actual: <Instance of 'StripeResponse<String>'>
Which: not an <Instance of 'String'>
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse decodeStripeResponse should throw on error response |
|---|
| Outcome: | Failed |
|---|
| Duration: | 0.006 sec |
|---|
| Failed | 1 failure, see stacktrace for details |
|---|
Failure:
Expected: throws <Instance of 'PaymentException'>
Actual: <Closure: () => Null>
Which: returned <null>
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse decodeStripeResponse should handle different data types |
|---|
| Outcome: | Failed |
|---|
| Duration: | 0.005 sec |
|---|
| Failed | 1 failure, see stacktrace for details |
|---|
Failure:
Expected: <42>
Actual: <Instance of 'StripeResponse<int>'>
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse decodeStripeResponse kDecodeStripeStringResponse should decode response with specific key |
|---|
| Outcome: | Failed |
|---|
| Duration: | 0.004 sec |
|---|
| Failed | 1 failure, see stacktrace for details |
|---|
Failure:
Expected: 'success'
Actual: <Instance of 'StripeResponse<dynamic>'>
Which: not an <Instance of 'String'>
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse decodeStripeResponse kDecodeStripeStringResponse should throw on missing key in response |
|---|
| Outcome: | Failed |
|---|
| Duration: | 0.004 sec |
|---|
| Failed | 1 failure, see stacktrace for details |
|---|
Failure:
Expected: throws <Instance of 'PaymentException'>
Actual: <Closure: () => Null>
Which: returned <null>
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse decodeStripeResponse kDecodeStripeStringResponse should handle numeric values as strings |
|---|
| Outcome: | Failed |
|---|
| Duration: | 0.004 sec |
|---|
| Failed | 1 failure, see stacktrace for details |
|---|
Failure:
Expected: '1000'
Actual: <Instance of 'StripeResponse<dynamic>'>
Which: not an <Instance of 'String'>
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse checkIfStripeError checkIfStripError throws an exception |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.004 sec |
|---|
StdoutWARNING
WARNING #0 StripeResponse.checkIfStripeError (package:payments/helper/stripe_response.dart:111:11)
WARNING #1 _runStripeErrorTests.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///d:/working/flipdare/code/packages/payments/test/unit/helper/stripe_response_test.dart:101:30)
WARNING
WARNING Stripe error [N/A, card_declined]: Stripe Error
WARNING Url: https://api.stripe.com/v1/charges
WARNING Code: 400
WARNING Response: {"error": "bad request"}
WARNING Error: null
WARNING | Test case: | tests unit/helper/stripe_response_test.dart StripeResponse checkIfStripeError checkIfStripeError does not throw an exception |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/helper/stripe_response_test.dart StripeResponse checkIfStripeError checkIfStripeError throws an exception for missing fields |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.004 sec |
|---|
StdoutWARNING
WARNING #0 StripeResponse.checkIfStripeError (package:payments/helper/stripe_response.dart:111:11)
WARNING #1 _runStripeErrorTests.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///d:/working/flipdare/code/packages/payments/test/unit/helper/stripe_response_test.dart:115:30)
WARNING
WARNING Stripe error [N/A, card_declined]: Stripe Error
WARNING Url: https://api.stripe.com/v1/charges
WARNING Code: 400
WARNING Response: {"error": "bad request"}
WARNING Error: null
WARNING | Test case: | tests unit/model/account_setup_test.dart AccountSetup json with currency code |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.006 sec |
|---|
| Test case: | tests unit/model/account_setup_test.dart AccountSetup json without currency code |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/model/account_test.dart Account ok: valid response |
|---|
| Outcome: | Failed |
|---|
| Duration: | 0.008 sec |
|---|
| Failed | type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast |
|---|
package:payments/model/account.g.dart 33:38 _$AccountFromJson
package:payments/model/account.dart 90:58 new Account.fromJson
test\unit\model\account_test.dart 29:33 runAccountUnitTests.<fn>.<fn>
| Test case: | tests unit/model/account_test.dart Account error: no account id in response |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/model/account_test.dart Account error: 401 Unauthorized |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/model/customer_setup_test.dart CustomerSetup json with currency code |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.001 sec |
|---|
| Test case: | tests unit/model/customer_setup_test.dart CustomerSetup json with currency |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.001 sec |
|---|
| Test case: | tests unit/model/customer_test.dart Customer should parse Customer from Stripe API response |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.003 sec |
|---|
| Test case: | tests unit/model/customer_test.dart Customer ok: valid response |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.001 sec |
|---|
| Test case: | tests unit/model/customer_test.dart Customer error: no customer id in response |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/model/customer_test.dart Customer error: 401 Unauthorized |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/model/intent_setup_test.dart IntentSetup creation |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.003 sec |
|---|
| Test case: | tests unit/model/intent_setup_test.dart IntentSetup description no truncation |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/model/intent_setup_test.dart IntentSetup description truncation |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/model/onboarding_request_test.dart OnboardingRequest ok: valid response |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.003 sec |
|---|
| Test case: | tests unit/model/onboarding_request_test.dart OnboardingRequest error: no onboard link in request |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.001 sec |
|---|
| Test case: | tests unit/model/onboarding_request_test.dart OnboardingRequest error: 401 Unauthorized |
|---|
| Outcome: | Passed |
|---|
| Duration: | 0.002 sec |
|---|
| Test case: | tests unit/rest/stripe_interceptor_test.dart StripeInterceptor intercept: adds headers correctly for GET methods |
|---|
| Outcome: | Failed |
|---|
| Duration: | 0.016 sec |
|---|
| Failed | 1 failure, see stacktrace for details |
|---|
Failure:
Expected: not null
Actual: <null>
Stdout INFO
INFO #0 StripeInterceptor.intercept (package:payments/rest/stripe_interceptor.dart:16:9)
INFO #1 runStripeInterceptorTests.<anonymous closure>.<anonymous closure> (file:///d:/working/flipdare/code/packages/payments/test/unit/rest/stripe_interceptor_test.dart:37:44)
INFO
INFO Sending Stripe request
INFO Method:GET
INFO :baseUri:https://api.stripe.com/
INFO Uri:https://api.stripe.com/v1/ephemeral_keys
INFO Headers:{Content-Type: application/json, Basic: 619c5c095930412bfd7022ddb8a691ff87a03984bdc4ce361c7c9dc03a0d51e2}
INFO | Test case: | tests unit/rest/stripe_interceptor_test.dart StripeInterceptor adds headers correctly for POST methods |
|---|
| Outcome: | Failed |
|---|
| Duration: | 0.007 sec |
|---|
| Failed | 1 failure, see stacktrace for details |
|---|
Failure:
Expected: not null
Actual: <null>
Stdout INFO
INFO #0 StripeInterceptor.intercept (package:payments/rest/stripe_interceptor.dart:16:9)
INFO #1 runStripeInterceptorTests.<anonymous closure>.<anonymous closure> (file:///d:/working/flipdare/code/packages/payments/test/unit/rest/stripe_interceptor_test.dart:70:44)
INFO
INFO Sending Stripe request
INFO Method:POST
INFO :baseUri:https://api.stripe.com/
INFO Uri:https://api.stripe.com/v1/customers
INFO Headers:{Content-Type: application/x-www-form-urlencoded, Basic: 619c5c095930412bfd7022ddb8a691ff87a03984bdc4ce361c7c9dc03a0d51e2}
INFO