Sha256: df8959289e2e83ba944cff53b9ee0f2a3301f1fd403cdc6cd94eef40f63085ea

Contents?: true

Size: 446 Bytes

Versions: 57

Compression:

Stored size: 446 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2021

require 'test_helper'

class DeltableTest < Minitest::Test
  include Instana::Snapshot::Deltable

  def test_delta
    subject = {a: {b: 5}}

    assert_equal 5, delta(:a, :b, obj: subject, compute: ->(o, n) { o + n })
    assert_equal 10, delta(:a, :b, obj: subject, compute: ->(o, n) { o + n })

    assert_nil delta(:a, :c, obj: subject, compute: ->(o, n) { o + n })
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
instana-1.209.6 test/snapshot/deltable_test.rb
instana-1.209.5 test/snapshot/deltable_test.rb
instana-1.209.4 test/snapshot/deltable_test.rb
instana-1.209.3 test/snapshot/deltable_test.rb
instana-1.209.2 test/snapshot/deltable_test.rb
instana-1.209.1 test/snapshot/deltable_test.rb
instana-1.209.0.pre3 test/snapshot/deltable_test.rb
instana-1.209.0.pre2 test/snapshot/deltable_test.rb
instana-1.209.0.pre1 test/snapshot/deltable_test.rb
instana-1.208.0 test/snapshot/deltable_test.rb
instana-1.207.0 test/snapshot/deltable_test.rb
instana-1.206.0 test/snapshot/deltable_test.rb
instana-1.205.0 test/snapshot/deltable_test.rb
instana-1.204.0 test/snapshot/deltable_test.rb
instana-1.204.0.pre3 test/snapshot/deltable_test.rb
instana-1.204.0.pre2 test/snapshot/deltable_test.rb
instana-1.204.0.pre1 test/snapshot/deltable_test.rb
instana-1.203.2 test/snapshot/deltable_test.rb
instana-1.203.1 test/snapshot/deltable_test.rb
instana-1.203.0 test/snapshot/deltable_test.rb