Class: Redbreast::TemplateGenerator::ImageTest::SwiftUI
- Includes:
- ERB::Util
- Defined in:
- lib/redbreast/template_generators/tests/images/swiftui_images_tests_template_generator.rb
Overview
Used for creating image tests in swift.
Instance Method Summary collapse
Instance Method Details
#template ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/redbreast/template_generators/tests/images/swiftui_images_tests_template_generator.rb', line 9 def template "import SwiftUI\nimport XCTest\n@testable import <%= bundle[:testableImport] %>\n\n// THIS FILE IS AUTOGENERATED, DO NOT EDIT BY HAND\n// swiftlint:disable function_body_length\nclass <%= File.basename(bundle[:outputTestPathImages], \".*\") %>: XCTestCase {\n\n func testIfImagesArePresent() {\n <%= create_swift_test_cases(names: asset_names, declaration: '_ = Image.', app_name: app_name) %>\n }\n}\n" end |