Sha256: e0247b838a84aec06069cf0b46d5d0e5c80b99c6f8205ead81f05765a8c7b2d6

Contents?: true

Size: 671 Bytes

Versions: 27

Compression:

Stored size: 671 Bytes

Contents

# frozen_string_literal: true

require 'minitest'
require 'minitest/unit'
require 'minitest/autorun'
require 'minitest/pride'
require 'redis'
require 'logster'
require 'logster/base_store'
require 'timecop'
require 'byebug'

class Logster::TestStore < Logster::BaseStore
  attr_accessor :reported
  def initialize
    super
    @reported = []
  end

  def save(message)
    @reported << message
  end

  def count
    @reported.count
  end

  def clear
    @reported = []
  end

  def clear_all
    @reported = []
  end

  def check_rate_limits(severity)
    # Do nothing
  end

  def increment_ignore_count(pattern)
  end

  # get, protect, unprotect: unimplemented
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
logster-2.12.2 test/test_helper.rb
logster-2.12.1 test/test_helper.rb
logster-2.11.4 test/test_helper.rb
logster-2.11.3 test/test_helper.rb
logster-2.11.2 test/test_helper.rb
logster-2.11.1 test/test_helper.rb
logster-2.11.0 test/test_helper.rb
logster-2.10.1 test/test_helper.rb
logster-2.10.0 test/test_helper.rb
logster-2.9.8 test/test_helper.rb
logster-2.9.7 test/test_helper.rb
logster-2.9.6 test/test_helper.rb
logster-2.9.5 test/test_helper.rb
logster-2.9.4 test/test_helper.rb
logster-2.9.3 test/test_helper.rb
logster-2.9.2 test/test_helper.rb
logster-2.9.1 test/test_helper.rb
logster-2.9.0 test/test_helper.rb
logster-2.8.0 test/test_helper.rb
logster-2.7.1 test/test_helper.rb