Class: Smith::Tool::ArgumentSnapshotTraversal
- Inherits:
-
Object
- Object
- Smith::Tool::ArgumentSnapshotTraversal
- Extended by:
- Dry::Initializer
- Defined in:
- lib/smith/tool/argument_snapshot_traversal.rb
Constant Summary collapse
- MAX_DEPTH =
100- MAX_NODES =
100_000- MAX_BYTES =
1 * 1024 * 1024
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/smith/tool/argument_snapshot_traversal.rb', line 16 def call initialize_traversal result = copy ArgumentSnapshotResult.new( value: result, node_count: @accounting.node_count, byte_count: @accounting.byte_count ) end |