Sha256: ef2bbf9d2ec11dfd1df6fe8a4b07e11ff4e71e406b5b484f3e6a419094eeef90

Contents?: true

Size: 529 Bytes

Versions: 21

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

module RubyMemcheck
  class Suppression
    attr_reader :root

    def initialize(configuration, suppression_node)
      @root = suppression_node
    end

    def to_s
      str = StringIO.new
      str << "{\n"
      str << "  #{root.at_xpath("sname").content}\n"
      str << "  #{root.at_xpath("skind").content}\n"
      root.xpath("./sframe/fun | ./sframe/obj").each do |frame|
        str << "  #{frame.name}:#{frame.content}\n"
      end
      str << "}\n"
      str.string
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ruby_memcheck-3.0.0 lib/ruby_memcheck/suppression.rb
ruby_memcheck-2.3.0 lib/ruby_memcheck/suppression.rb
ruby_memcheck-2.2.1 lib/ruby_memcheck/suppression.rb
ruby_memcheck-2.2.0 lib/ruby_memcheck/suppression.rb
ruby_memcheck-2.1.2 lib/ruby_memcheck/suppression.rb
ruby_memcheck-2.1.1 lib/ruby_memcheck/suppression.rb
ruby_memcheck-2.1.0 lib/ruby_memcheck/suppression.rb
ruby_memcheck-2.0.1 lib/ruby_memcheck/suppression.rb
ruby_memcheck-2.0.0 lib/ruby_memcheck/suppression.rb
ruby_memcheck-1.3.2 lib/ruby_memcheck/suppression.rb
ruby_memcheck-1.3.1 lib/ruby_memcheck/suppression.rb
ruby_memcheck-1.3.0 lib/ruby_memcheck/suppression.rb
ruby_memcheck-1.2.0 lib/ruby_memcheck/suppression.rb
ruby_memcheck-1.1.2 lib/ruby_memcheck/suppression.rb
ruby_memcheck-1.1.1 lib/ruby_memcheck/suppression.rb
ruby_memcheck-1.1.0 lib/ruby_memcheck/suppression.rb
ruby_memcheck-1.0.3 lib/ruby_memcheck/suppression.rb
ruby_memcheck-1.0.2 lib/ruby_memcheck/suppression.rb
ruby_memcheck-1.0.1 lib/ruby_memcheck/suppression.rb
ruby_memcheck-1.0.0 lib/ruby_memcheck/suppression.rb