Sha256: b261574aeb2e3a1cd0f76c1f1316ab66de757a5525f3749a115e829a0b8d2a26

Contents?: true

Size: 731 Bytes

Versions: 20

Compression:

Stored size: 731 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

describe Rdkafka::Callbacks do

  # The code in the call back functions is 100% covered by other specs.  Due to
  # the large number of collaborators, and the fact that FFI does not play
  # nicely with doubles, it was very difficult to construct tests that were
  # not over-mocked.

  # For debugging purposes, if you suspect that you are running into trouble in
  # one of the callback functions, it may be helpful to surround the inner body
  # of the method with something like:
  #
  #   begin
  #     <method body>
  #   rescue => ex; puts ex.inspect; puts ex.backtrace; end;
  #
  # This will output to STDOUT any exceptions that are being raised in the callback.

end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rdkafka-0.13.1 spec/rdkafka/callbacks_spec.rb
karafka-rdkafka-0.13.8 spec/rdkafka/callbacks_spec.rb
karafka-rdkafka-0.13.7 spec/rdkafka/callbacks_spec.rb
karafka-rdkafka-0.13.6 spec/rdkafka/callbacks_spec.rb
karafka-rdkafka-0.13.5 spec/rdkafka/callbacks_spec.rb
karafka-rdkafka-0.13.4 spec/rdkafka/callbacks_spec.rb
rdkafka-0.13.0 spec/rdkafka/callbacks_spec.rb
karafka-rdkafka-0.13.3 spec/rdkafka/callbacks_spec.rb
karafka-rdkafka-0.13.2 spec/rdkafka/callbacks_spec.rb
karafka-rdkafka-0.13.1 spec/rdkafka/callbacks_spec.rb
rdkafka-0.13.0.beta.8 spec/rdkafka/callbacks_spec.rb
karafka-rdkafka-0.13.0 spec/rdkafka/callbacks_spec.rb
karafka-rdkafka-0.13.0.beta2 spec/rdkafka/callbacks_spec.rb
karafka-rdkafka-0.13.0.beta1 spec/rdkafka/callbacks_spec.rb
rdkafka-0.13.0.beta.7 spec/rdkafka/callbacks_spec.rb
rdkafka-0.13.0.beta.6 spec/rdkafka/callbacks_spec.rb
rdkafka-0.13.0.beta.5 spec/rdkafka/callbacks_spec.rb
rdkafka-0.13.0.beta.3 spec/rdkafka/callbacks_spec.rb
rdkafka-0.13.0.beta.2 spec/rdkafka/callbacks_spec.rb
rdkafka-0.13.0.beta.1 spec/rdkafka/callbacks_spec.rb