Sha256: 721e7d2dd33a28b654ea2a4ad3c7e9ab4069ba1565746da9b4b406a57bcb3509

Contents?: true

Size: 604 Bytes

Versions: 30

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

module PubSubModelSync
  class MockKafkaService
    class MockProducer
      def produce(*_args)
        true
      end

      def deliver_messages(*_args)
        true
      end

      def shutdown
        true
      end
    end

    class MockConsumer
      def each_message(*_args)
        true
      end

      def stop(*_args)
        true
      end

      def subscribe(*_args)
        true
      end
    end

    def producer(*_args)
      MockProducer.new
    end

    def consumer(*_args)
      MockConsumer.new
    end

    def close
      true
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
pub_sub_model_sync-0.5.10 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.9.1 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.9 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.8.2 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.8.1 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.8 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.7.1 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.7 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.6 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.5 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.4.1 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.4 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.3 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.2 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.1.1 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.1 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.0.1 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.5.0 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.4.2.1 lib/pub_sub_model_sync/mock_kafka_service.rb
pub_sub_model_sync-0.4.2 lib/pub_sub_model_sync/mock_kafka_service.rb