Class: Necropsy::EntryPoints::Test
- Inherits:
-
Object
- Object
- Necropsy::EntryPoints::Test
- Defined in:
- lib/necropsy/entry_points/test.rb
Instance Method Summary collapse
Instance Method Details
#apply(graph, _project) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/necropsy/entry_points/test.rb', line 6 def apply(graph, _project) graph.nodes.values.select { |node| node.kind == :block_entry && node.test }.each do |node| graph.add_entry_point( node.graph_id, :test_suite, domain: :test, evidence: { 'type' => 'test_file', 'file' => node.file } ) end end |