Class: Bash::Merge::TestHarnessIdentity
- Inherits:
-
Object
- Object
- Bash::Merge::TestHarnessIdentity
- Defined in:
- lib/bash/merge/test_harness_identity.rb
Overview
Extracts bounded AST identities for Git-style shell test harness calls.
Class Method Summary collapse
Class Method Details
.for(wrapper) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/bash/merge/test_harness_identity.rb', line 8 def for(wrapper) return unless wrapper.command? && wrapper.command_name == 'test_expect_success' identity = literal_identity(wrapper) [:test_expect_success, *identity] if identity end |