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.217.1 test/snapshot/deltable_test.rb
instana-1.217.0 test/snapshot/deltable_test.rb
instana-1.216.0 test/snapshot/deltable_test.rb
instana-1.215.1 test/snapshot/deltable_test.rb
instana-1.215.0 test/snapshot/deltable_test.rb
instana-1.214.4 test/snapshot/deltable_test.rb
instana-1.214.3 test/snapshot/deltable_test.rb
instana-1.214.2 test/snapshot/deltable_test.rb
instana-1.214.1 test/snapshot/deltable_test.rb
instana-1.214.0 test/snapshot/deltable_test.rb
instana-1.213.3 test/snapshot/deltable_test.rb
instana-1.213.2 test/snapshot/deltable_test.rb
instana-1.213.1 test/snapshot/deltable_test.rb
instana-1.213.0 test/snapshot/deltable_test.rb
instana-1.212.0 test/snapshot/deltable_test.rb
instana-1.211.0 test/snapshot/deltable_test.rb
instana-1.210.1 test/snapshot/deltable_test.rb
instana-1.210.0 test/snapshot/deltable_test.rb
instana-1.209.8 test/snapshot/deltable_test.rb
instana-1.209.7 test/snapshot/deltable_test.rb