Class: PreprocessinatorHelper
- Defined in:
- lib/ceedling/preprocessinator_helper.rb
Instance Method Summary collapse
- #assemble_mocks_list(test) ⇒ Object
- #preprocess_includes(test, preprocess_includes_proc) ⇒ Object
- #preprocess_mockable_headers(mock_list, preprocess_file_proc) ⇒ Object
- #preprocess_source_includes(test) ⇒ Object
- #preprocess_test_file(test, preprocess_file_proc) ⇒ Object
Instance Method Details
#assemble_mocks_list(test) ⇒ Object
22 23 24 |
# File 'lib/ceedling/preprocessinator_helper.rb', line 22 def assemble_mocks_list(test) return @file_path_utils.form_mocks_source_filelist( @test_includes_extractor.lookup_raw_mock_list(test) ) end |
#preprocess_includes(test, preprocess_includes_proc) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/ceedling/preprocessinator_helper.rb', line 8 def preprocess_includes(test, preprocess_includes_proc) if (@configurator.project_use_test_preprocessor) preprocessed_includes_list = @file_path_utils.form_preprocessed_includes_list_filepath(test) preprocess_includes_proc.call( @file_finder.find_test_from_file_path(preprocessed_includes_list) ) @test_includes_extractor.parse_includes_list(preprocessed_includes_list) else @test_includes_extractor.parse_test_file(test) end end |
#preprocess_mockable_headers(mock_list, preprocess_file_proc) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/ceedling/preprocessinator_helper.rb', line 26 def preprocess_mockable_headers(mock_list, preprocess_file_proc) if (@configurator.project_use_test_preprocessor) preprocess_files_smartly( @file_path_utils.form_preprocessed_mockable_headers_filelist(mock_list), preprocess_file_proc ) { |file| @file_finder.find_header_file(file) } end end |
#preprocess_source_includes(test) ⇒ Object
18 19 20 |
# File 'lib/ceedling/preprocessinator_helper.rb', line 18 def preprocess_source_includes(test) @test_includes_extractor.parse_test_file_source_include(test) end |
#preprocess_test_file(test, preprocess_file_proc) ⇒ Object
34 35 36 37 38 |
# File 'lib/ceedling/preprocessinator_helper.rb', line 34 def preprocess_test_file(test, preprocess_file_proc) return if (!@configurator.project_use_test_preprocessor) preprocess_file_proc.call(test) end |