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