File: null_output.rb

package info (click to toggle)
ruby-benchmark-memory 0.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: ruby: 1,121; makefile: 7; sh: 4
file content (25 lines) | stat: -rw-r--r-- 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Benchmark
  module Memory
    class Job
      # Swallow all output from a job.
      class NullOutput
        # Swallow entry output.
        #
        # @return [void]
        def put_entry(entry); end

        # Swallow comparison output.
        #
        # @return [void]
        def put_comparison(comparison); end

        # Swallow header output.
        #
        # @return [void]
        def put_header; end
      end
    end
  end
end