Method: FeatureMap::Private::TestPyramidFile.split

Defined in:
lib/feature_map/private/test_pyramid_file.rb

.split(examples) ⇒ Object



96
97
98
99
100
# File 'lib/feature_map/private/test_pyramid_file.rb', line 96

def self.split(examples)
  return [0, 0] if examples.nil?

  examples.partition { |ex| ex['status'] == 'passed' }.map(&:count)
end