    # File lib/rubygems/test_utilities.rb, line 46
      def fetch_size(path)
        path = path.to_s
        @paths << path
        raise ArgumentError, 'need full URI' unless path =~ %r'^http://'
        data = @data[path]

        if data.nil? then
          raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", nil)
        end

        data.respond_to?(:call) ? data.call : data.length
      end