Sha256: 4a6641a080e7771306a9a76cb3f783f4f26d37545ed52d5e1dff327a41e38cc5
Contents?: true
Size: 852 Bytes
Versions: 5
Compression:
Stored size: 852 Bytes
Contents
module CMSScanner # Dummy Finding class DummyFinding include Finders::Finding attr_reader :r def initialize(r, opts = {}) @r = r parse_finding_options(opts) end def ==(other) r == other.r end def eql?(other) r == other.r && confidence == other.confidence && found_by == other.found_by end end module Finders # Dummy Test Finder class DummyFinder < Finder def passive(_opts = {}) DummyFinding.new('test', found_by: found_by) end def aggressive(_opts = {}) DummyFinding.new('test', confidence: 100, found_by: 'override') end end # No aggressive result finder class NoAggressiveResult < Finder def passive(_opts = {}) DummyFinding.new('spotted', confidence: 10, found_by: found_by) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems