Sha256: d86284ccca8bc1e7bf01dc784df66370299aedb302ed200c5974dac28c2b8601
Contents?: true
Size: 700 Bytes
Versions: 4
Compression:
Stored size: 700 Bytes
Contents
require 'redbreast/template_generators/swift_template_generator' module Redbreast module TemplateGenerator module ImageTest # Used for creating image tests in swift. class Swift < TemplateGenerator::Swift include ERB::Util def template <<~TEMPLATE import UIKit import XCTest @testable import <%= bundle[:testableImport] %> //THIS FILE IS AUTOGENERATED, DO NOT EDIT BY HAND class <%= File.basename(bundle[:outputTestPathImages], ".*") %>: XCTestCase { func testIfImagesArePresent() { <%= create_swift_test_cases(names: asset_names, declaration: '_ = UIImage.', app_name: app_name) %> } } TEMPLATE end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems