You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: healthy_urls_test.rb
    path of file: ./repos/newrelic-ruby-agent/test/new_relic
    
    the code of the file until where you have to start completion: # This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

# The unit test class defined herein will verify the health of all
    
  def gather_urls
    Dir.glob(File.join(ROOT, '**', '*')).each_with_object(Hash.new { |hash, key| hash[key] = [] }) do |file, urls|
      next unless File.file?(file) && File.basename(file).match?(FILE_PATTERN) && !file.match?(IGNORED_FILE_PATTERN)

      changelog_entries_seen = 0
      File.open(file).each do |line|
        changelog_entries_seen += 1 if File.basename(file).eql?('CHANGELOG.md') && line.start_with?('##')
        break if changelog_entries_seen > 2
        next unless line =~ URL_PATTERN

        url = Regexp.last_match(1).sub(%r{(?:/|\.)$}, '')
        urls[url] << file if real_url?(url)
      end
    end
  end