• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-ruby / #6002

24 May 2024 05:42PM UTC coverage: 92.616% (-4.9%) from 97.477%
#6002

push

github

web-flow
Add method to list invoice line items (#1404)

8 of 8 new or added lines in 2 files covered. (100.0%)

565 existing lines in 103 files now uncovered.

10197 of 11010 relevant lines covered (92.62%)

261.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

64.71
/test/test_data.rb
1
# frozen_string_literal: true
2

3
module Stripe
1✔
4
  module TestData
1✔
5
    def make_error(type, message)
1✔
UNCOV
6
      {
×
7
        error: {
8
          type: type,
9
          message: message,
10
        },
11
      }
12
    end
13

14
    def make_invalid_api_key_error
1✔
UNCOV
15
      {
×
16
        error: {
17
          type: "invalid_request_error",
18
          message: "Invalid API Key provided: invalid",
19
        },
20
      }
21
    end
22

23
    def make_invalid_exp_year_error
1✔
UNCOV
24
      {
×
25
        error: {
26
          code: "invalid_expiry_year",
27
          param: "exp_year",
28
          type: "card_error",
29
          message: "Your card's expiration year is invalid",
30
        },
1✔
31
      }
32
    end
33

34
    def make_missing_id_error
1✔
UNCOV
35
      {
×
36
        error: {
37
          param: "id",
38
          type: "invalid_request_error",
39
          message: "Missing id",
40
        },
12✔
41
      }
42
    end
43

44
    def make_rate_limit_error
1✔
UNCOV
45
      {
×
46
        error: {
47
          type: "invalid_request_error",
48
          message: "Too many requests in a period of time.",
49
        },
1✔
50
      }
51
    end
52

53
    def make_api_error
1✔
UNCOV
54
      {
×
55
        error: {
56
          type: "api_error",
57
        },
58
      }
59
    end
60
  end
61
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc