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

ruby-grape / grape / 16206473483

10 Jul 2025 09:32PM UTC coverage: 98.196% (-0.03%) from 98.23%
16206473483

Pull #2580

github

web-flow
Merge c6b72d830 into 392dccadc
Pull Request #2580: Revisit endpoint helpers and Grape::Middleware::Error helpers

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

2 existing lines in 1 file now uncovered.

3375 of 3437 relevant lines covered (98.2%)

50124.97 hits per line

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

54.55
/lib/grape/util/lazy/value_array.rb
1
# frozen_string_literal: true
2

3
module Grape
44✔
4
  module Util
44✔
5
    module Lazy
44✔
6
      class ValueArray < ValueEnumerable
44✔
7
        def initialize(array)
44✔
8
          super
×
9
          @value_hash = []
×
10
          array.each_with_index do |value, index|
×
11
            self[index] = value
×
12
          end
13
        end
14

15
        def evaluate
44✔
16
          @value_hash.map(&:evaluate)
×
17
        end
18
      end
19
    end
20
  end
21
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

© 2025 Coveralls, Inc