From f4bc39a681a593c014c2afe7f662ad74897f8cf0 Mon Sep 17 00:00:00 2001 From: Aleksey Krauchuk Date: Thu, 26 Mar 2026 13:41:51 +0100 Subject: [PATCH 1/8] add async builder and plugin; update tests; update stencils --- Sources/Nodes/Core/AbstractBuilder.swift | 43 ++++++++++++++++++ Sources/Nodes/Core/Config/Plugin.swift | 45 +++++++++++++++++++ .../Stencils/Builder-SwiftUI.stencil | 10 ++--- .../Resources/Stencils/Builder.stencil | 12 ++--- .../Resources/Stencils/BuilderTests.stencil | 8 ++-- .../Stencils/Interface-SwiftUI.stencil | 2 +- .../Resources/Stencils/Interface.stencil | 6 +-- .../Resources/Stencils/Plugin.stencil | 2 +- .../Resources/Stencils/PluginTests.stencil | 16 ++++--- ...ateAppPreset.Contents-AppBuilder-swift.txt | 6 +-- ...eAppPreset.Contents-AppInterface-swift.txt | 2 +- ...eRootPreset.Contents-RootBuilder-swift.txt | 6 +-- ...ootPreset.Contents-RootInterface-swift.txt | 2 +- ...eset.Contents-WindowSceneBuilder-swift.txt | 6 +-- ...et.Contents-WindowSceneInterface-swift.txt | 2 +- ...dowPreset.Contents-WindowBuilder-swift.txt | 6 +-- ...wPreset.Contents-WindowInterface-swift.txt | 2 +- ...tRenderNode.Builder-AppKit-mockCount-0.txt | 6 +-- ...tRenderNode.Builder-AppKit-mockCount-1.txt | 10 ++--- ...tRenderNode.Builder-AppKit-mockCount-2.txt | 10 ++--- ...Node.Builder-AppKitSwiftUI-mockCount-0.txt | 6 +-- ...Node.Builder-AppKitSwiftUI-mockCount-1.txt | 10 ++--- ...Node.Builder-AppKitSwiftUI-mockCount-2.txt | 10 ++--- ...tRenderNode.Builder-Custom-mockCount-0.txt | 6 +-- ...tRenderNode.Builder-Custom-mockCount-1.txt | 10 ++--- ...tRenderNode.Builder-Custom-mockCount-2.txt | 10 ++--- ...stRenderNode.Builder-UIKit-mockCount-0.txt | 6 +-- ...stRenderNode.Builder-UIKit-mockCount-1.txt | 10 ++--- ...stRenderNode.Builder-UIKit-mockCount-2.txt | 10 ++--- ...rNode.Builder-UIKitSwiftUI-mockCount-0.txt | 6 +-- ...rNode.Builder-UIKitSwiftUI-mockCount-1.txt | 10 ++--- ...rNode.Builder-UIKitSwiftUI-mockCount-2.txt | 10 ++--- ...enderNode.Interface-AppKit-mockCount-0.txt | 2 +- ...enderNode.Interface-AppKit-mockCount-1.txt | 2 +- ...enderNode.Interface-AppKit-mockCount-2.txt | 2 +- ...de.Interface-AppKitSwiftUI-mockCount-0.txt | 2 +- ...de.Interface-AppKitSwiftUI-mockCount-1.txt | 2 +- ...de.Interface-AppKitSwiftUI-mockCount-2.txt | 2 +- ...enderNode.Interface-Custom-mockCount-0.txt | 2 +- ...enderNode.Interface-Custom-mockCount-1.txt | 2 +- ...enderNode.Interface-Custom-mockCount-2.txt | 2 +- ...RenderNode.Interface-UIKit-mockCount-0.txt | 2 +- ...RenderNode.Interface-UIKit-mockCount-1.txt | 2 +- ...RenderNode.Interface-UIKit-mockCount-2.txt | 2 +- ...ode.Interface-UIKitSwiftUI-mockCount-0.txt | 2 +- ...ode.Interface-UIKitSwiftUI-mockCount-1.txt | 2 +- ...ode.Interface-UIKitSwiftUI-mockCount-2.txt | 2 +- ...odePresetApp.Builder-UIKit-mockCount-0.txt | 6 +-- ...odePresetApp.Builder-UIKit-mockCount-1.txt | 6 +-- ...odePresetApp.Builder-UIKit-mockCount-2.txt | 6 +-- ...ePresetApp.Interface-UIKit-mockCount-0.txt | 2 +- ...ePresetApp.Interface-UIKit-mockCount-1.txt | 2 +- ...ePresetApp.Interface-UIKit-mockCount-2.txt | 2 +- ...dePresetRoot.Builder-UIKit-mockCount-0.txt | 6 +-- ...dePresetRoot.Builder-UIKit-mockCount-1.txt | 6 +-- ...dePresetRoot.Builder-UIKit-mockCount-2.txt | 6 +-- ...PresetRoot.Interface-UIKit-mockCount-0.txt | 2 +- ...PresetRoot.Interface-UIKit-mockCount-1.txt | 2 +- ...PresetRoot.Interface-UIKit-mockCount-2.txt | 2 +- ...ePresetScene.Builder-UIKit-mockCount-0.txt | 6 +-- ...ePresetScene.Builder-UIKit-mockCount-1.txt | 6 +-- ...ePresetScene.Builder-UIKit-mockCount-2.txt | 6 +-- ...resetScene.Interface-UIKit-mockCount-0.txt | 2 +- ...resetScene.Interface-UIKit-mockCount-1.txt | 2 +- ...resetScene.Interface-UIKit-mockCount-2.txt | 2 +- ...PresetWindow.Builder-UIKit-mockCount-0.txt | 6 +-- ...PresetWindow.Builder-UIKit-mockCount-1.txt | 6 +-- ...PresetWindow.Builder-UIKit-mockCount-2.txt | 6 +-- ...esetWindow.Interface-UIKit-mockCount-0.txt | 2 +- ...esetWindow.Interface-UIKit-mockCount-1.txt | 2 +- ...esetWindow.Interface-UIKit-mockCount-2.txt | 2 +- ...erNodeViewInjected.Builder-mockCount-0.txt | 6 +-- ...erNodeViewInjected.Builder-mockCount-1.txt | 6 +-- ...erNodeViewInjected.Builder-mockCount-2.txt | 6 +-- ...eViewInjected.BuilderTests-mockCount-0.txt | 5 ++- ...eViewInjected.BuilderTests-mockCount-1.txt | 5 ++- ...eViewInjected.BuilderTests-mockCount-2.txt | 5 ++- ...NodeViewInjected.Interface-mockCount-0.txt | 2 +- ...NodeViewInjected.Interface-mockCount-1.txt | 2 +- ...NodeViewInjected.Interface-mockCount-2.txt | 2 +- ..._withPlugin.Builder-AppKit-mockCount-0.txt | 6 +-- ..._withPlugin.Builder-AppKit-mockCount-1.txt | 10 ++--- ..._withPlugin.Builder-AppKit-mockCount-2.txt | 10 ++--- ...ugin.Builder-AppKitSwiftUI-mockCount-0.txt | 6 +-- ...ugin.Builder-AppKitSwiftUI-mockCount-1.txt | 10 ++--- ...ugin.Builder-AppKitSwiftUI-mockCount-2.txt | 10 ++--- ..._withPlugin.Builder-Custom-mockCount-0.txt | 6 +-- ..._withPlugin.Builder-Custom-mockCount-1.txt | 10 ++--- ..._withPlugin.Builder-Custom-mockCount-2.txt | 10 ++--- ...e_withPlugin.Builder-UIKit-mockCount-0.txt | 6 +-- ...e_withPlugin.Builder-UIKit-mockCount-1.txt | 10 ++--- ...e_withPlugin.Builder-UIKit-mockCount-2.txt | 10 ++--- ...lugin.Builder-UIKitSwiftUI-mockCount-0.txt | 6 +-- ...lugin.Builder-UIKitSwiftUI-mockCount-1.txt | 10 ++--- ...lugin.Builder-UIKitSwiftUI-mockCount-2.txt | 10 ++--- ...ithPlugin.Interface-AppKit-mockCount-0.txt | 2 +- ...ithPlugin.Interface-AppKit-mockCount-1.txt | 2 +- ...ithPlugin.Interface-AppKit-mockCount-2.txt | 2 +- ...in.Interface-AppKitSwiftUI-mockCount-0.txt | 2 +- ...in.Interface-AppKitSwiftUI-mockCount-1.txt | 2 +- ...in.Interface-AppKitSwiftUI-mockCount-2.txt | 2 +- ...ithPlugin.Interface-Custom-mockCount-0.txt | 2 +- ...ithPlugin.Interface-Custom-mockCount-1.txt | 2 +- ...ithPlugin.Interface-Custom-mockCount-2.txt | 2 +- ...withPlugin.Interface-UIKit-mockCount-0.txt | 2 +- ...withPlugin.Interface-UIKit-mockCount-1.txt | 2 +- ...withPlugin.Interface-UIKit-mockCount-2.txt | 2 +- ...gin.Interface-UIKitSwiftUI-mockCount-0.txt | 2 +- ...gin.Interface-UIKitSwiftUI-mockCount-1.txt | 2 +- ...gin.Interface-UIKitSwiftUI-mockCount-2.txt | 2 +- ...e_withPlugin.Plugin-AppKit-mockCount-0.txt | 2 +- ...e_withPlugin.Plugin-AppKit-mockCount-1.txt | 2 +- ...e_withPlugin.Plugin-AppKit-mockCount-2.txt | 2 +- ...lugin.Plugin-AppKitSwiftUI-mockCount-0.txt | 2 +- ...lugin.Plugin-AppKitSwiftUI-mockCount-1.txt | 2 +- ...lugin.Plugin-AppKitSwiftUI-mockCount-2.txt | 2 +- ...e_withPlugin.Plugin-Custom-mockCount-0.txt | 2 +- ...e_withPlugin.Plugin-Custom-mockCount-1.txt | 2 +- ...e_withPlugin.Plugin-Custom-mockCount-2.txt | 2 +- ...de_withPlugin.Plugin-UIKit-mockCount-0.txt | 2 +- ...de_withPlugin.Plugin-UIKit-mockCount-1.txt | 2 +- ...de_withPlugin.Plugin-UIKit-mockCount-2.txt | 2 +- ...Plugin.Plugin-UIKitSwiftUI-mockCount-0.txt | 2 +- ...Plugin.Plugin-UIKitSwiftUI-mockCount-1.txt | 2 +- ...Plugin.Plugin-UIKitSwiftUI-mockCount-2.txt | 2 +- ...ginAndTests.Builder-AppKit-mockCount-0.txt | 6 +-- ...ginAndTests.Builder-AppKit-mockCount-1.txt | 10 ++--- ...ginAndTests.Builder-AppKit-mockCount-2.txt | 10 ++--- ...ests.Builder-AppKitSwiftUI-mockCount-0.txt | 6 +-- ...ests.Builder-AppKitSwiftUI-mockCount-1.txt | 10 ++--- ...ests.Builder-AppKitSwiftUI-mockCount-2.txt | 10 ++--- ...ginAndTests.Builder-Custom-mockCount-0.txt | 6 +-- ...ginAndTests.Builder-Custom-mockCount-1.txt | 10 ++--- ...ginAndTests.Builder-Custom-mockCount-2.txt | 10 ++--- ...uginAndTests.Builder-UIKit-mockCount-0.txt | 6 +-- ...uginAndTests.Builder-UIKit-mockCount-1.txt | 10 ++--- ...uginAndTests.Builder-UIKit-mockCount-2.txt | 10 ++--- ...Tests.Builder-UIKitSwiftUI-mockCount-0.txt | 6 +-- ...Tests.Builder-UIKitSwiftUI-mockCount-1.txt | 10 ++--- ...Tests.Builder-UIKitSwiftUI-mockCount-2.txt | 10 ++--- ...dTests.BuilderTests-AppKit-mockCount-0.txt | 5 ++- ...dTests.BuilderTests-AppKit-mockCount-1.txt | 5 ++- ...dTests.BuilderTests-AppKit-mockCount-2.txt | 5 ++- ...BuilderTests-AppKitSwiftUI-mockCount-0.txt | 5 ++- ...BuilderTests-AppKitSwiftUI-mockCount-1.txt | 5 ++- ...BuilderTests-AppKitSwiftUI-mockCount-2.txt | 5 ++- ...dTests.BuilderTests-Custom-mockCount-0.txt | 5 ++- ...dTests.BuilderTests-Custom-mockCount-1.txt | 5 ++- ...dTests.BuilderTests-Custom-mockCount-2.txt | 5 ++- ...ndTests.BuilderTests-UIKit-mockCount-0.txt | 5 ++- ...ndTests.BuilderTests-UIKit-mockCount-1.txt | 5 ++- ...ndTests.BuilderTests-UIKit-mockCount-2.txt | 5 ++- ....BuilderTests-UIKitSwiftUI-mockCount-0.txt | 5 ++- ....BuilderTests-UIKitSwiftUI-mockCount-1.txt | 5 ++- ....BuilderTests-UIKitSwiftUI-mockCount-2.txt | 5 ++- ...nAndTests.Interface-AppKit-mockCount-0.txt | 2 +- ...nAndTests.Interface-AppKit-mockCount-1.txt | 2 +- ...nAndTests.Interface-AppKit-mockCount-2.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-0.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-1.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-2.txt | 2 +- ...nAndTests.Interface-Custom-mockCount-0.txt | 2 +- ...nAndTests.Interface-Custom-mockCount-1.txt | 2 +- ...nAndTests.Interface-Custom-mockCount-2.txt | 2 +- ...inAndTests.Interface-UIKit-mockCount-0.txt | 2 +- ...inAndTests.Interface-UIKit-mockCount-1.txt | 2 +- ...inAndTests.Interface-UIKit-mockCount-2.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-0.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-1.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-2.txt | 2 +- ...uginAndTests.Plugin-AppKit-mockCount-0.txt | 2 +- ...uginAndTests.Plugin-AppKit-mockCount-1.txt | 2 +- ...uginAndTests.Plugin-AppKit-mockCount-2.txt | 2 +- ...Tests.Plugin-AppKitSwiftUI-mockCount-0.txt | 2 +- ...Tests.Plugin-AppKitSwiftUI-mockCount-1.txt | 2 +- ...Tests.Plugin-AppKitSwiftUI-mockCount-2.txt | 2 +- ...uginAndTests.Plugin-Custom-mockCount-0.txt | 2 +- ...uginAndTests.Plugin-Custom-mockCount-1.txt | 2 +- ...uginAndTests.Plugin-Custom-mockCount-2.txt | 2 +- ...luginAndTests.Plugin-UIKit-mockCount-0.txt | 2 +- ...luginAndTests.Plugin-UIKit-mockCount-1.txt | 2 +- ...luginAndTests.Plugin-UIKit-mockCount-2.txt | 2 +- ...dTests.Plugin-UIKitSwiftUI-mockCount-0.txt | 2 +- ...dTests.Plugin-UIKitSwiftUI-mockCount-1.txt | 2 +- ...dTests.Plugin-UIKitSwiftUI-mockCount-2.txt | 2 +- ...ndTests.PluginTests-AppKit-mockCount-0.txt | 10 +++-- ...ndTests.PluginTests-AppKit-mockCount-1.txt | 10 +++-- ...ndTests.PluginTests-AppKit-mockCount-2.txt | 10 +++-- ....PluginTests-AppKitSwiftUI-mockCount-0.txt | 10 +++-- ....PluginTests-AppKitSwiftUI-mockCount-1.txt | 10 +++-- ....PluginTests-AppKitSwiftUI-mockCount-2.txt | 10 +++-- ...ndTests.PluginTests-Custom-mockCount-0.txt | 10 +++-- ...ndTests.PluginTests-Custom-mockCount-1.txt | 10 +++-- ...ndTests.PluginTests-Custom-mockCount-2.txt | 10 +++-- ...AndTests.PluginTests-UIKit-mockCount-0.txt | 10 +++-- ...AndTests.PluginTests-UIKit-mockCount-1.txt | 10 +++-- ...AndTests.PluginTests-UIKit-mockCount-2.txt | 10 +++-- ...s.PluginTests-UIKitSwiftUI-mockCount-0.txt | 10 +++-- ...s.PluginTests-UIKitSwiftUI-mockCount-1.txt | 10 +++-- ...s.PluginTests-UIKitSwiftUI-mockCount-2.txt | 10 +++-- ...e_withTests.Builder-AppKit-mockCount-0.txt | 6 +-- ...e_withTests.Builder-AppKit-mockCount-1.txt | 10 ++--- ...e_withTests.Builder-AppKit-mockCount-2.txt | 10 ++--- ...ests.Builder-AppKitSwiftUI-mockCount-0.txt | 6 +-- ...ests.Builder-AppKitSwiftUI-mockCount-1.txt | 10 ++--- ...ests.Builder-AppKitSwiftUI-mockCount-2.txt | 10 ++--- ...e_withTests.Builder-Custom-mockCount-0.txt | 6 +-- ...e_withTests.Builder-Custom-mockCount-1.txt | 10 ++--- ...e_withTests.Builder-Custom-mockCount-2.txt | 10 ++--- ...de_withTests.Builder-UIKit-mockCount-0.txt | 6 +-- ...de_withTests.Builder-UIKit-mockCount-1.txt | 10 ++--- ...de_withTests.Builder-UIKit-mockCount-2.txt | 10 ++--- ...Tests.Builder-UIKitSwiftUI-mockCount-0.txt | 6 +-- ...Tests.Builder-UIKitSwiftUI-mockCount-1.txt | 10 ++--- ...Tests.Builder-UIKitSwiftUI-mockCount-2.txt | 10 ++--- ...hTests.BuilderTests-AppKit-mockCount-0.txt | 5 ++- ...hTests.BuilderTests-AppKit-mockCount-1.txt | 5 ++- ...hTests.BuilderTests-AppKit-mockCount-2.txt | 5 ++- ...BuilderTests-AppKitSwiftUI-mockCount-0.txt | 5 ++- ...BuilderTests-AppKitSwiftUI-mockCount-1.txt | 5 ++- ...BuilderTests-AppKitSwiftUI-mockCount-2.txt | 5 ++- ...hTests.BuilderTests-Custom-mockCount-0.txt | 5 ++- ...hTests.BuilderTests-Custom-mockCount-1.txt | 5 ++- ...hTests.BuilderTests-Custom-mockCount-2.txt | 5 ++- ...thTests.BuilderTests-UIKit-mockCount-0.txt | 5 ++- ...thTests.BuilderTests-UIKit-mockCount-1.txt | 5 ++- ...thTests.BuilderTests-UIKit-mockCount-2.txt | 5 ++- ....BuilderTests-UIKitSwiftUI-mockCount-0.txt | 5 ++- ....BuilderTests-UIKitSwiftUI-mockCount-1.txt | 5 ++- ....BuilderTests-UIKitSwiftUI-mockCount-2.txt | 5 ++- ...withTests.Interface-AppKit-mockCount-0.txt | 2 +- ...withTests.Interface-AppKit-mockCount-1.txt | 2 +- ...withTests.Interface-AppKit-mockCount-2.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-0.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-1.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-2.txt | 2 +- ...withTests.Interface-Custom-mockCount-0.txt | 2 +- ...withTests.Interface-Custom-mockCount-1.txt | 2 +- ...withTests.Interface-Custom-mockCount-2.txt | 2 +- ..._withTests.Interface-UIKit-mockCount-0.txt | 2 +- ..._withTests.Interface-UIKit-mockCount-1.txt | 2 +- ..._withTests.Interface-UIKit-mockCount-2.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-0.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-1.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-2.txt | 2 +- .../testRenderPlugin.Plugin-mockCount-0.txt | 2 +- .../testRenderPlugin.Plugin-mockCount-1.txt | 2 +- .../testRenderPlugin.Plugin-mockCount-2.txt | 2 +- ...derPlugin_withTests.Plugin-mockCount-0.txt | 2 +- ...derPlugin_withTests.Plugin-mockCount-1.txt | 2 +- ...derPlugin_withTests.Plugin-mockCount-2.txt | 2 +- ...ugin_withTests.PluginTests-mockCount-0.txt | 10 +++-- ...ugin_withTests.PluginTests-mockCount-1.txt | 10 +++-- ...ugin_withTests.PluginTests-mockCount-2.txt | 10 +++-- ...WithIdentifier.Contents-AppKit-Builder.txt | 6 +-- ...dentifier.Contents-AppKit-BuilderTests.txt | 5 ++- ...thIdentifier.Contents-AppKit-Interface.txt | 2 +- ...eWithIdentifier.Contents-AppKit-Plugin.txt | 2 +- ...Identifier.Contents-AppKit-PluginTests.txt | 10 +++-- ...nts-AppKitCreatedForPluginList-Builder.txt | 10 ++--- ...ppKitCreatedForPluginList-BuilderTests.txt | 5 ++- ...s-AppKitCreatedForPluginList-Interface.txt | 2 +- ...ents-AppKitCreatedForPluginList-Plugin.txt | 2 +- ...AppKitCreatedForPluginList-PluginTests.txt | 10 +++-- ...ntifier.Contents-AppKitSwiftUI-Builder.txt | 6 +-- ...er.Contents-AppKitSwiftUI-BuilderTests.txt | 5 ++- ...ifier.Contents-AppKitSwiftUI-Interface.txt | 2 +- ...entifier.Contents-AppKitSwiftUI-Plugin.txt | 2 +- ...ier.Contents-AppKitSwiftUI-PluginTests.txt | 10 +++-- ...KitSwiftUICreatedForPluginList-Builder.txt | 10 ++--- ...iftUICreatedForPluginList-BuilderTests.txt | 5 ++- ...tSwiftUICreatedForPluginList-Interface.txt | 2 +- ...pKitSwiftUICreatedForPluginList-Plugin.txt | 2 +- ...wiftUICreatedForPluginList-PluginTests.txt | 10 +++-- ...WithIdentifier.Contents-Custom-Builder.txt | 6 +-- ...dentifier.Contents-Custom-BuilderTests.txt | 5 ++- ...thIdentifier.Contents-Custom-Interface.txt | 2 +- ...eWithIdentifier.Contents-Custom-Plugin.txt | 2 +- ...Identifier.Contents-Custom-PluginTests.txt | 10 +++-- ...nts-CustomCreatedForPluginList-Builder.txt | 10 ++--- ...ustomCreatedForPluginList-BuilderTests.txt | 5 ++- ...s-CustomCreatedForPluginList-Interface.txt | 2 +- ...ents-CustomCreatedForPluginList-Plugin.txt | 2 +- ...CustomCreatedForPluginList-PluginTests.txt | 10 +++-- ...eWithIdentifier.Contents-Plugin-Plugin.txt | 2 +- ...Identifier.Contents-Plugin-PluginTests.txt | 10 +++-- ...eWithIdentifier.Contents-UIKit-Builder.txt | 6 +-- ...Identifier.Contents-UIKit-BuilderTests.txt | 5 ++- ...ithIdentifier.Contents-UIKit-Interface.txt | 2 +- ...teWithIdentifier.Contents-UIKit-Plugin.txt | 2 +- ...hIdentifier.Contents-UIKit-PluginTests.txt | 10 +++-- ...ents-UIKitCreatedForPluginList-Builder.txt | 10 ++--- ...UIKitCreatedForPluginList-BuilderTests.txt | 5 ++- ...ts-UIKitCreatedForPluginList-Interface.txt | 2 +- ...tents-UIKitCreatedForPluginList-Plugin.txt | 2 +- ...-UIKitCreatedForPluginList-PluginTests.txt | 10 +++-- ...entifier.Contents-UIKitSwiftUI-Builder.txt | 6 +-- ...ier.Contents-UIKitSwiftUI-BuilderTests.txt | 5 ++- ...tifier.Contents-UIKitSwiftUI-Interface.txt | 2 +- ...dentifier.Contents-UIKitSwiftUI-Plugin.txt | 2 +- ...fier.Contents-UIKitSwiftUI-PluginTests.txt | 10 +++-- ...KitSwiftUICreatedForPluginList-Builder.txt | 10 ++--- ...iftUICreatedForPluginList-BuilderTests.txt | 5 ++- ...tSwiftUICreatedForPluginList-Interface.txt | 2 +- ...IKitSwiftUICreatedForPluginList-Plugin.txt | 2 +- ...wiftUICreatedForPluginList-PluginTests.txt | 10 +++-- ...entifier.Contents-ViewInjected-Builder.txt | 6 +-- ...ier.Contents-ViewInjected-BuilderTests.txt | 5 ++- ...tifier.Contents-ViewInjected-Interface.txt | 2 +- ...dentifier.Contents-ViewInjected-Plugin.txt | 2 +- ...fier.Contents-ViewInjected-PluginTests.txt | 10 +++-- ...enerateWithURL.Contents-AppKit-Builder.txt | 6 +-- ...teWithURL.Contents-AppKit-BuilderTests.txt | 5 ++- ...erateWithURL.Contents-AppKit-Interface.txt | 2 +- ...GenerateWithURL.Contents-AppKit-Plugin.txt | 2 +- ...ateWithURL.Contents-AppKit-PluginTests.txt | 10 +++-- ...nts-AppKitCreatedForPluginList-Builder.txt | 10 ++--- ...ppKitCreatedForPluginList-BuilderTests.txt | 5 ++- ...s-AppKitCreatedForPluginList-Interface.txt | 2 +- ...ents-AppKitCreatedForPluginList-Plugin.txt | 2 +- ...AppKitCreatedForPluginList-PluginTests.txt | 10 +++-- ...WithURL.Contents-AppKitSwiftUI-Builder.txt | 6 +-- ...RL.Contents-AppKitSwiftUI-BuilderTests.txt | 5 ++- ...thURL.Contents-AppKitSwiftUI-Interface.txt | 2 +- ...eWithURL.Contents-AppKitSwiftUI-Plugin.txt | 2 +- ...URL.Contents-AppKitSwiftUI-PluginTests.txt | 10 +++-- ...KitSwiftUICreatedForPluginList-Builder.txt | 10 ++--- ...iftUICreatedForPluginList-BuilderTests.txt | 5 ++- ...tSwiftUICreatedForPluginList-Interface.txt | 2 +- ...pKitSwiftUICreatedForPluginList-Plugin.txt | 2 +- ...wiftUICreatedForPluginList-PluginTests.txt | 10 +++-- ...enerateWithURL.Contents-Custom-Builder.txt | 6 +-- ...teWithURL.Contents-Custom-BuilderTests.txt | 5 ++- ...erateWithURL.Contents-Custom-Interface.txt | 2 +- ...GenerateWithURL.Contents-Custom-Plugin.txt | 2 +- ...ateWithURL.Contents-Custom-PluginTests.txt | 10 +++-- ...nts-CustomCreatedForPluginList-Builder.txt | 10 ++--- ...ustomCreatedForPluginList-BuilderTests.txt | 5 ++- ...s-CustomCreatedForPluginList-Interface.txt | 2 +- ...ents-CustomCreatedForPluginList-Plugin.txt | 2 +- ...CustomCreatedForPluginList-PluginTests.txt | 10 +++-- ...GenerateWithURL.Contents-Plugin-Plugin.txt | 2 +- ...ateWithURL.Contents-Plugin-PluginTests.txt | 10 +++-- ...GenerateWithURL.Contents-UIKit-Builder.txt | 6 +-- ...ateWithURL.Contents-UIKit-BuilderTests.txt | 5 ++- ...nerateWithURL.Contents-UIKit-Interface.txt | 2 +- ...tGenerateWithURL.Contents-UIKit-Plugin.txt | 2 +- ...rateWithURL.Contents-UIKit-PluginTests.txt | 10 +++-- ...ents-UIKitCreatedForPluginList-Builder.txt | 10 ++--- ...UIKitCreatedForPluginList-BuilderTests.txt | 5 ++- ...ts-UIKitCreatedForPluginList-Interface.txt | 2 +- ...tents-UIKitCreatedForPluginList-Plugin.txt | 2 +- ...-UIKitCreatedForPluginList-PluginTests.txt | 10 +++-- ...eWithURL.Contents-UIKitSwiftUI-Builder.txt | 6 +-- ...URL.Contents-UIKitSwiftUI-BuilderTests.txt | 5 ++- ...ithURL.Contents-UIKitSwiftUI-Interface.txt | 2 +- ...teWithURL.Contents-UIKitSwiftUI-Plugin.txt | 2 +- ...hURL.Contents-UIKitSwiftUI-PluginTests.txt | 10 +++-- ...KitSwiftUICreatedForPluginList-Builder.txt | 10 ++--- ...iftUICreatedForPluginList-BuilderTests.txt | 5 ++- ...tSwiftUICreatedForPluginList-Interface.txt | 2 +- ...IKitSwiftUICreatedForPluginList-Plugin.txt | 2 +- ...wiftUICreatedForPluginList-PluginTests.txt | 10 +++-- ...eWithURL.Contents-ViewInjected-Builder.txt | 6 +-- ...URL.Contents-ViewInjected-BuilderTests.txt | 5 ++- ...ithURL.Contents-ViewInjected-Interface.txt | 2 +- ...teWithURL.Contents-ViewInjected-Plugin.txt | 2 +- ...hURL.Contents-ViewInjected-PluginTests.txt | 10 +++-- .../CoreTests/AbstractBuilderTests.swift | 26 +++++++++++ .../CoreTests/ConfigTests/PluginTests.swift | 35 +++++++++++++++ 370 files changed, 1161 insertions(+), 867 deletions(-) diff --git a/Sources/Nodes/Core/AbstractBuilder.swift b/Sources/Nodes/Core/AbstractBuilder.swift index fbe7f0692..80b203e61 100644 --- a/Sources/Nodes/Core/AbstractBuilder.swift +++ b/Sources/Nodes/Core/AbstractBuilder.swift @@ -64,6 +64,7 @@ open class AbstractBuilder BuildType { + preconditionFailure("Method in abstract base class must be overridden") + } + + /// Async variant of ``build(_:_:)``. Creates a `ComponentType` instance and passes it to the + /// async ``build(component:dynamicBuildDependency:)`` override. + /// + /// - Parameters: + /// - dynamicBuildDependency: The `DynamicBuildDependencyType` instance. + /// - dynamicComponentDependency: The `DynamicComponentDependencyType` instance. + /// + /// - Returns: A `BuildType` instance (`Flow` object). + public final func build( + _ dynamicBuildDependency: DynamicBuildDependencyType, + _ dynamicComponentDependency: DynamicComponentDependencyType + ) async -> BuildType { + let component: ComponentType = componentFactory(dynamicComponentDependency) + let newComponent: AnyObject = component as AnyObject + assert(newComponent !== lastComponent, "Factory must produce a new component each time it is called") + lastComponent = newComponent + return await build(component: component, dynamicBuildDependency: dynamicBuildDependency) + } } // swiftlint:enable period_spacing diff --git a/Sources/Nodes/Core/Config/Plugin.swift b/Sources/Nodes/Core/Config/Plugin.swift index 32e3e4bad..ec88f42ea 100644 --- a/Sources/Nodes/Core/Config/Plugin.swift +++ b/Sources/Nodes/Core/Config/Plugin.swift @@ -68,6 +68,7 @@ open class Plugin { /// - Parameter component: The `ComponentType` instance. /// /// - Returns: A `BuildType` instance. + @available(*, deprecated, message: "Override the async variant instead") open func build(component: ComponentType) -> BuildType { // swiftlint:disable:this unavailable_function preconditionFailure("Method in abstract base class must be overridden") } @@ -94,6 +95,43 @@ open class Plugin { return build(component: component) } + // MARK: - Async + + /// Async variant of ``build(component:)``. + /// + /// Override this instead of the synchronous version when the plugin needs to + /// `await` async dependency resolution. + /// + /// - Important: This abstract method must be overridden in subclasses that use async building. + /// This method should never be called directly. + /// The plugin calls this method internally. + /// + /// - Parameter component: The `ComponentType` instance. + /// + /// - Returns: A `BuildType` instance. + open func build(component: ComponentType) async -> BuildType { // swiftlint:disable:this unavailable_function + preconditionFailure("Method in abstract base class must be overridden") + } + + /// Async variant of ``create(state:)``. Returns a `BuildType` instance when enabled, otherwise `nil`. + /// + /// - Parameter state: The `StateType` instance. + /// + /// - Returns: An optional `BuildType` instance. + public func create(state: StateType) async -> BuildType? { + let component: ComponentType = makeComponent() + guard isEnabled(component: component, state: state) + else { return nil } + return await build(component: component) + } + + /// Async variant of ``override()``. Returns a `BuildType` instance ignoring whether the plugin is enabled. + /// + /// - Returns: A `BuildType` instance. + public func override() async -> BuildType { + await build(component: makeComponent()) + } + // MARK: - Access Control: private private func makeComponent() -> ComponentType { @@ -117,4 +155,11 @@ extension Plugin where StateType == Void { public func create() -> BuildType? { create(state: ()) } + + /// Async convenience for plugins whose `StateType` is `Void`. + /// + /// - Returns: An optional `BuildType` instance. + public func create() async -> BuildType? { + await create(state: ()) + } } diff --git a/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil b/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil index 20796461a..bc693f76d 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil @@ -106,8 +106,8 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: {{ plugin_list_name }}Listener - ) -> {{ plugin_list_name }}Flow { - build(withListener: listener as {{ node_name }}Listener) + ) async -> {{ plugin_list_name }}Flow { + await build(withListener: listener as {{ node_name }}Listener) } {% endif %} @@ -115,17 +115,17 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: {{ node_name }}Listener - ) -> {{ node_name }}Flow { + ) async -> {{ node_name }}Flow { let dynamicBuildDependency: {{ node_name }}DynamicBuildDependency = listener let dynamicComponentDependency: {{ node_name }}DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: {{ node_name }}Component, dynamicBuildDependency: {{ node_name }}DynamicBuildDependency - ) -> {{ node_name }}Flow { + ) async -> {{ node_name }}Flow { let listener: {{ node_name }}Listener = dynamicBuildDependency let store: {{ store_prefix }}Store< {{ node_name }}State, diff --git a/Sources/NodesGenerator/Resources/Stencils/Builder.stencil b/Sources/NodesGenerator/Resources/Stencils/Builder.stencil index cae2ec289..920102fc4 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Builder.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Builder.stencil @@ -142,20 +142,20 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: {{ plugin_list_name }}Listener - ) -> {{ plugin_list_name }}Flow { - build(withListener: listener as {{ node_name }}Listener) + ) async -> {{ plugin_list_name }}Flow { + await build(withListener: listener as {{ node_name }}Listener) } {% endif %} /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. {% if node_name == "App" %} - internal func build() -> {{ node_name }}Flow { + internal func build() async -> {{ node_name }}Flow { {% else %} internal func build( withListener listener: {{ node_name }}Listener{% if not owns_view %}{{ ',' }} viewController: {{ node_name }}ViewControllable{% endif +%} - ) -> {{ node_name }}Flow { + ) async -> {{ node_name }}Flow { {% endif %} {% if owns_view %} let dynamicBuildDependency: {{ node_name }}DynamicBuildDependency = listener @@ -165,14 +165,14 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder let dynamicBuildDependency: {{ node_name }}DynamicBuildDependency = (listener, viewController) {% endif %} let dynamicComponentDependency: {{ node_name }}DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: {{ node_name }}Component, dynamicBuildDependency: {{ node_name }}DynamicBuildDependency - ) -> {{ node_name }}Flow { + ) async -> {{ node_name }}Flow { {% if owns_view %} let listener: {{ node_name }}Listener = dynamicBuildDependency {% elif node_name != "App" %} diff --git a/Sources/NodesGenerator/Resources/Stencils/BuilderTests.stencil b/Sources/NodesGenerator/Resources/Stencils/BuilderTests.stencil index bbf272216..bce98400b 100644 --- a/Sources/NodesGenerator/Resources/Stencils/BuilderTests.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/BuilderTests.stencil @@ -51,11 +51,13 @@ final class {{ node_name }}BuilderTests: XCTestCase { } @MainActor - func testCreate() { + func testCreate() async { {% if is_nimble_enabled %} - expect { [self] in builder.build(withListener: listenerMock{% if not owns_view %}, viewController: viewControllableMock{% endif %}) } != nil + let result = await builder.build(withListener: listenerMock{% if not owns_view %}, viewController: viewControllableMock{% endif %}) + expect(result) != nil {% else %} - XCTAssertNotNil(builder.build(withListener: listenerMock{% if not owns_view %}, viewController: viewControllableMock{% endif %})) + let result = await builder.build(withListener: listenerMock{% if not owns_view %}, viewController: viewControllableMock{% endif %}) + XCTAssertNotNil(result) {% endif %} } } diff --git a/Sources/NodesGenerator/Resources/Stencils/Interface-SwiftUI.stencil b/Sources/NodesGenerator/Resources/Stencils/Interface-SwiftUI.stencil index a72c080b0..aee6b325a 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Interface-SwiftUI.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Interface-SwiftUI.stencil @@ -37,5 +37,5 @@ internal protocol {{ node_name }}Builder: AnyObject { {% endif %} func build( withListener listener: {{ node_name }}Listener - ) -> {{ node_name }}Flow + ) async -> {{ node_name }}Flow } diff --git a/Sources/NodesGenerator/Resources/Stencils/Interface.stencil b/Sources/NodesGenerator/Resources/Stencils/Interface.stencil index 9ed627405..5d414b318 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Interface.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Interface.stencil @@ -53,17 +53,17 @@ internal protocol {{ node_name }}Flow: Flow {} internal protocol {{ node_name }}Builder: {{ plugin_list_name }}Builder { func build( withListener listener: {{ node_name }}Listener - ) -> {{ node_name }}Flow + ) async -> {{ node_name }}Flow } {% else %} internal protocol {{ node_name }}Builder: AnyObject { {% if node_name == "App" %} - func build() -> {{ node_name }}Flow + func build() async -> {{ node_name }}Flow {% else %} func build( withListener listener: {{ node_name }}Listener{% if not owns_view %}{{ ',' }} viewController: {{ node_name }}ViewControllable{% endif +%} - ) -> {{ node_name }}Flow + ) async -> {{ node_name }}Flow {% endif %} } {% endif %} diff --git a/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil b/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil index 260abc098..a841307ed 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil @@ -79,7 +79,7 @@ internal final class {{ plugin_name }}PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: {{ plugin_name }}PluginComponent - ) -> {{ plugin_name }}Builder { + ) async -> {{ plugin_name }}Builder { {{ plugin_name }}BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Sources/NodesGenerator/Resources/Stencils/PluginTests.stencil b/Sources/NodesGenerator/Resources/Stencils/PluginTests.stencil index dd88b458a..fea000cb5 100644 --- a/Sources/NodesGenerator/Resources/Stencils/PluginTests.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/PluginTests.stencil @@ -32,20 +32,24 @@ final class {{ plugin_name }}PluginTests: XCTestCase { } @MainActor - func testCreate() { + func testCreate() async { {% if is_nimble_enabled %} - expect { [self] in plugin.create() } != nil + let result = await plugin.create() + expect(result) != nil {% else %} - XCTAssertNotNil(plugin.create()) + let result = await plugin.create() + XCTAssertNotNil(result) {% endif %} } @MainActor - func testOverride() { + func testOverride() async { {% if is_nimble_enabled %} - expect { [self] in plugin.override() } != nil + let result = await plugin.override() + expect(result) != nil {% else %} - XCTAssertNotNil(plugin.override()) + let result = await plugin.override() + XCTAssertNotNil(result) {% endif %} } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt index 80065f42b..ba94fa9d9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt @@ -79,17 +79,17 @@ internal final class AppBuilderImp: AbstractBuilder /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. - internal func build() -> AppFlow { + internal func build() async -> AppFlow { let dynamicBuildDependency: AppDynamicBuildDependency = () let dynamicComponentDependency: AppDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency - ) -> AppFlow { + ) async -> AppFlow { let analytics: AppAnalyticsImp = .init() let context: AppContextImp = .init( workers: [], diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppInterface-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppInterface-swift.txt index 0b8152ee4..267cf49b8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppInterface-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppInterface-swift.txt @@ -15,5 +15,5 @@ internal protocol AppFlow: Flow {} /// @mockable @MainActor internal protocol AppBuilder: AnyObject { - func build() -> AppFlow + func build() async -> AppFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt index 79c9242e2..2e206157d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt @@ -87,17 +87,17 @@ internal final class RootBuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: RootListener - ) -> RootFlow { + ) async -> RootFlow { let dynamicBuildDependency: RootDynamicBuildDependency = listener let dynamicComponentDependency: RootDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency - ) -> RootFlow { + ) async -> RootFlow { let listener: RootListener = dynamicBuildDependency let store: Store< RootState, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootInterface-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootInterface-swift.txt index 90a2be9d2..e8e57d084 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootInterface-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootInterface-swift.txt @@ -22,5 +22,5 @@ internal protocol RootFlow: ViewControllableFlow {} internal protocol RootBuilder: AnyObject { func build( withListener listener: RootListener - ) -> RootFlow + ) async -> RootFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt index d2ec4ccc0..da5dd4d35 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt @@ -92,17 +92,17 @@ internal final class WindowSceneBuilderImp: AbstractBuilder internal func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) -> WindowSceneFlow { + ) async -> WindowSceneFlow { let dynamicBuildDependency: WindowSceneDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowSceneDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency - ) -> WindowSceneFlow { + ) async -> WindowSceneFlow { let listener: WindowSceneListener = dynamicBuildDependency.0 let viewController: WindowSceneViewControllable = dynamicBuildDependency.1 let analytics: WindowSceneAnalyticsImp = .init() diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneInterface-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneInterface-swift.txt index 3e40b78fb..65bd749a0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneInterface-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneInterface-swift.txt @@ -25,5 +25,5 @@ internal protocol WindowSceneBuilder: AnyObject { func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) -> WindowSceneFlow + ) async -> WindowSceneFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt index eed766c6c..90a4203c7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt @@ -92,17 +92,17 @@ internal final class WindowBuilderImp: AbstractBuilder internal func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) -> WindowFlow { + ) async -> WindowFlow { let dynamicBuildDependency: WindowDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency - ) -> WindowFlow { + ) async -> WindowFlow { let listener: WindowListener = dynamicBuildDependency.0 let viewController: WindowViewControllable = dynamicBuildDependency.1 let analytics: WindowAnalyticsImp = .init() diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowInterface-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowInterface-swift.txt index dca5c1162..9efdc1cb9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowInterface-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowInterface-swift.txt @@ -23,5 +23,5 @@ internal protocol WindowBuilder: AnyObject { func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) -> WindowFlow + ) async -> WindowFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt index b7a6b5720..3d34cf994 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt @@ -79,17 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt index fffa48109..1434ef035 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt @@ -85,25 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt index 9aab31879..70a44a6d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt index b7a6b5720..3d34cf994 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt @@ -79,17 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt index fffa48109..1434ef035 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt @@ -85,25 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt index 9aab31879..70a44a6d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt index 922cea90f..bbf179905 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt @@ -73,17 +73,17 @@ internal final class AppBuilderImp: AbstractBuilder /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. - internal func build() -> AppFlow { + internal func build() async -> AppFlow { let dynamicBuildDependency: AppDynamicBuildDependency = () let dynamicComponentDependency: AppDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency - ) -> AppFlow { + ) async -> AppFlow { let analytics: AppAnalyticsImp = .init() let context: AppContextImp = .init( workers: [], diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt index c54621e0f..056e630aa 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt @@ -78,17 +78,17 @@ internal final class AppBuilderImp: AbstractBuilder /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. - internal func build() -> AppFlow { + internal func build() async -> AppFlow { let dynamicBuildDependency: AppDynamicBuildDependency = () let dynamicComponentDependency: AppDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency - ) -> AppFlow { + ) async -> AppFlow { let analytics: AppAnalyticsImp = .init( : component. ) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt index 3340348da..2140d98fd 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt @@ -79,17 +79,17 @@ internal final class AppBuilderImp: AbstractBuilder /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. - internal func build() -> AppFlow { + internal func build() async -> AppFlow { let dynamicBuildDependency: AppDynamicBuildDependency = () let dynamicComponentDependency: AppDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency - ) -> AppFlow { + ) async -> AppFlow { let analytics: AppAnalyticsImp = .init( : component., : component. diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-0.txt index 23b100f59..eb48b97e1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-0.txt @@ -11,5 +11,5 @@ internal protocol AppFlow: Flow {} /// @mockable @MainActor internal protocol AppBuilder: AnyObject { - func build() -> AppFlow + func build() async -> AppFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-1.txt index 07839614a..daa634534 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-1.txt @@ -14,5 +14,5 @@ internal protocol AppFlow: Flow {} /// @mockable @MainActor internal protocol AppBuilder: AnyObject { - func build() -> AppFlow + func build() async -> AppFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-2.txt index 5737ece71..7632b2fa3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-2.txt @@ -15,5 +15,5 @@ internal protocol AppFlow: Flow {} /// @mockable @MainActor internal protocol AppBuilder: AnyObject { - func build() -> AppFlow + func build() async -> AppFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt index c2006edaa..23379ac07 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class RootBuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: RootListener - ) -> RootFlow { + ) async -> RootFlow { let dynamicBuildDependency: RootDynamicBuildDependency = listener let dynamicComponentDependency: RootDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency - ) -> RootFlow { + ) async -> RootFlow { let listener: RootListener = dynamicBuildDependency let store: Store< RootState, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt index 5c39c7d6b..8300359c0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt @@ -88,17 +88,17 @@ internal final class RootBuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: RootListener - ) -> RootFlow { + ) async -> RootFlow { let dynamicBuildDependency: RootDynamicBuildDependency = listener let dynamicComponentDependency: RootDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency - ) -> RootFlow { + ) async -> RootFlow { let listener: RootListener = dynamicBuildDependency let store: Store< RootState, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt index fa365342f..a71aa521f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt @@ -90,17 +90,17 @@ internal final class RootBuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: RootListener - ) -> RootFlow { + ) async -> RootFlow { let dynamicBuildDependency: RootDynamicBuildDependency = listener let dynamicComponentDependency: RootDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency - ) -> RootFlow { + ) async -> RootFlow { let listener: RootListener = dynamicBuildDependency let store: Store< RootState, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-0.txt index edd561117..99287ee0d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol RootFlow: {} internal protocol RootBuilder: AnyObject { func build( withListener listener: RootListener - ) -> RootFlow + ) async -> RootFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-1.txt index d1532de90..6287c57da 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol RootFlow: {} internal protocol RootBuilder: AnyObject { func build( withListener listener: RootListener - ) -> RootFlow + ) async -> RootFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-2.txt index d60f8e7cc..46163817b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol RootFlow: {} internal protocol RootBuilder: AnyObject { func build( withListener listener: RootListener - ) -> RootFlow + ) async -> RootFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt index 3dfeeccc2..2ef2bc5e6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt @@ -86,17 +86,17 @@ internal final class WindowSceneBuilderImp: AbstractBuilder internal func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) -> WindowSceneFlow { + ) async -> WindowSceneFlow { let dynamicBuildDependency: WindowSceneDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowSceneDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency - ) -> WindowSceneFlow { + ) async -> WindowSceneFlow { let listener: WindowSceneListener = dynamicBuildDependency.0 let viewController: WindowSceneViewControllable = dynamicBuildDependency.1 let analytics: WindowSceneAnalyticsImp = .init() diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt index 166a021ab..ae5790329 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt @@ -93,17 +93,17 @@ internal final class WindowSceneBuilderImp: AbstractBuilder internal func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) -> WindowSceneFlow { + ) async -> WindowSceneFlow { let dynamicBuildDependency: WindowSceneDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowSceneDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency - ) -> WindowSceneFlow { + ) async -> WindowSceneFlow { let listener: WindowSceneListener = dynamicBuildDependency.0 let viewController: WindowSceneViewControllable = dynamicBuildDependency.1 let analytics: WindowSceneAnalyticsImp = .init( diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt index b7bb9d7d2..addef9a53 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt @@ -95,17 +95,17 @@ internal final class WindowSceneBuilderImp: AbstractBuilder internal func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) -> WindowSceneFlow { + ) async -> WindowSceneFlow { let dynamicBuildDependency: WindowSceneDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowSceneDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency - ) -> WindowSceneFlow { + ) async -> WindowSceneFlow { let listener: WindowSceneListener = dynamicBuildDependency.0 let viewController: WindowSceneViewControllable = dynamicBuildDependency.1 let analytics: WindowSceneAnalyticsImp = .init( diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-0.txt index ae96f00fa..e77431a25 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-0.txt @@ -21,5 +21,5 @@ internal protocol WindowSceneBuilder: AnyObject { func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) -> WindowSceneFlow + ) async -> WindowSceneFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-1.txt index 39a87c688..2d01c4f87 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-1.txt @@ -24,5 +24,5 @@ internal protocol WindowSceneBuilder: AnyObject { func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) -> WindowSceneFlow + ) async -> WindowSceneFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-2.txt index 9ef7d7900..8b7f88ca6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-2.txt @@ -25,5 +25,5 @@ internal protocol WindowSceneBuilder: AnyObject { func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) -> WindowSceneFlow + ) async -> WindowSceneFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt index aa90cb81b..a690184fd 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt @@ -86,17 +86,17 @@ internal final class WindowBuilderImp: AbstractBuilder internal func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) -> WindowFlow { + ) async -> WindowFlow { let dynamicBuildDependency: WindowDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency - ) -> WindowFlow { + ) async -> WindowFlow { let listener: WindowListener = dynamicBuildDependency.0 let viewController: WindowViewControllable = dynamicBuildDependency.1 let analytics: WindowAnalyticsImp = .init() diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt index 9a940c075..67e56e9b2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt @@ -93,17 +93,17 @@ internal final class WindowBuilderImp: AbstractBuilder internal func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) -> WindowFlow { + ) async -> WindowFlow { let dynamicBuildDependency: WindowDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency - ) -> WindowFlow { + ) async -> WindowFlow { let listener: WindowListener = dynamicBuildDependency.0 let viewController: WindowViewControllable = dynamicBuildDependency.1 let analytics: WindowAnalyticsImp = .init( diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt index 0afbc835e..604531d73 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt @@ -95,17 +95,17 @@ internal final class WindowBuilderImp: AbstractBuilder internal func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) -> WindowFlow { + ) async -> WindowFlow { let dynamicBuildDependency: WindowDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowDynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency - ) -> WindowFlow { + ) async -> WindowFlow { let listener: WindowListener = dynamicBuildDependency.0 let viewController: WindowViewControllable = dynamicBuildDependency.1 let analytics: WindowAnalyticsImp = .init( diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-0.txt index 78671ea5b..53fc354a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-0.txt @@ -19,5 +19,5 @@ internal protocol WindowBuilder: AnyObject { func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) -> WindowFlow + ) async -> WindowFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-1.txt index da3a5b88c..8baf7a0c4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-1.txt @@ -22,5 +22,5 @@ internal protocol WindowBuilder: AnyObject { func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) -> WindowFlow + ) async -> WindowFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-2.txt index 5d694459f..cbf623723 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-2.txt @@ -23,5 +23,5 @@ internal protocol WindowBuilder: AnyObject { func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) -> WindowFlow + ) async -> WindowFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt index 72d805189..98c609eeb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt @@ -82,17 +82,17 @@ internal final class BuilderImp: AbstractBuilder internal func build( withListener listener: Listener, viewController: ViewControllable - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency.0 let viewController: ViewControllable = dynamicBuildDependency.1 let analytics: AnalyticsImp = .init() diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt index 8801d1856..8856e6bcc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt @@ -89,17 +89,17 @@ internal final class BuilderImp: AbstractBuilder internal func build( withListener listener: Listener, viewController: ViewControllable - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency.0 let viewController: ViewControllable = dynamicBuildDependency.1 let analytics: AnalyticsImp = .init( diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt index c8ae0cb8a..185970dff 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt @@ -91,17 +91,17 @@ internal final class BuilderImp: AbstractBuilder internal func build( withListener listener: Listener, viewController: ViewControllable - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency.0 let viewController: ViewControllable = dynamicBuildDependency.1 let analytics: AnalyticsImp = .init( diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-0.txt index e8677b3b1..10f6257e4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-0.txt @@ -32,7 +32,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(builder.build(withListener: listenerMock, viewController: viewControllableMock)) + func testCreate() async { + let result = await builder.build(withListener: listenerMock, viewController: viewControllableMock) + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-1.txt index 2f6621d73..fa755ae97 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-1.txt @@ -39,7 +39,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock, viewController: viewControllableMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock, viewController: viewControllableMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-2.txt index 6ef0e796a..527b3d058 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-2.txt @@ -40,7 +40,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock, viewController: viewControllableMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock, viewController: viewControllableMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-0.txt index e5667d4f2..1ad9daabb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-0.txt @@ -26,5 +26,5 @@ internal protocol Builder: AnyObject { func build( withListener listener: Listener, viewController: ViewControllable - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-1.txt index 18604b666..816fcd359 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-1.txt @@ -28,5 +28,5 @@ internal protocol Builder: AnyObject { func build( withListener listener: Listener, viewController: ViewControllable - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-2.txt index f59a81bb4..26dc8824d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-2.txt @@ -29,5 +29,5 @@ internal protocol Builder: AnyObject { func build( withListener listener: Listener, viewController: ViewControllable - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt index b7a6b5720..3d34cf994 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt @@ -79,17 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt index fffa48109..1434ef035 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt @@ -85,25 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt index 9aab31879..70a44a6d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt index b7a6b5720..3d34cf994 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt @@ -79,17 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt index fffa48109..1434ef035 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt @@ -85,25 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt index 9aab31879..70a44a6d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt index 30798fcab..f9eb61ba0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt index 30798fcab..f9eb61ba0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt index 30798fcab..f9eb61ba0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt index 30798fcab..f9eb61ba0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt index 30798fcab..f9eb61ba0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt index b7a6b5720..3d34cf994 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt @@ -79,17 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt index fffa48109..1434ef035 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt @@ -85,25 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt index 9aab31879..70a44a6d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt index b7a6b5720..3d34cf994 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt @@ -79,17 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt index fffa48109..1434ef035 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt @@ -85,25 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt index 9aab31879..70a44a6d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-0.txt index 117d706ea..1b66befec 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-0.txt @@ -29,7 +29,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(builder.build(withListener: listenerMock)) + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-1.txt index 8ffec0bd4..3dd552984 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-1.txt @@ -31,7 +31,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-2.txt index 49331c450..735d1d1bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-2.txt @@ -32,7 +32,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt index 117d706ea..1b66befec 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt @@ -29,7 +29,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(builder.build(withListener: listenerMock)) + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt index 8ffec0bd4..3dd552984 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt @@ -31,7 +31,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt index 49331c450..735d1d1bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt @@ -32,7 +32,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-0.txt index 117d706ea..1b66befec 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-0.txt @@ -29,7 +29,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(builder.build(withListener: listenerMock)) + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-1.txt index 8ffec0bd4..3dd552984 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-1.txt @@ -31,7 +31,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-2.txt index 49331c450..735d1d1bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-2.txt @@ -32,7 +32,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-0.txt index 117d706ea..1b66befec 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-0.txt @@ -29,7 +29,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(builder.build(withListener: listenerMock)) + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-1.txt index 8ffec0bd4..3dd552984 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-1.txt @@ -31,7 +31,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-2.txt index 49331c450..735d1d1bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-2.txt @@ -32,7 +32,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt index 117d706ea..1b66befec 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt @@ -29,7 +29,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(builder.build(withListener: listenerMock)) + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt index 8ffec0bd4..3dd552984 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt @@ -31,7 +31,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt index 49331c450..735d1d1bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt @@ -32,7 +32,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt index 30798fcab..f9eb61ba0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt index 30798fcab..f9eb61ba0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt index 30798fcab..f9eb61ba0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt index 30798fcab..f9eb61ba0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt index 30798fcab..f9eb61ba0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt index 4f599b99a..50ce71913 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt @@ -71,7 +71,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-0.txt index 49e995042..340983755 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-0.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(plugin.create()) + func testCreate() async { + let result = await plugin.create() + XCTAssertNotNil(result) } @MainActor - func testOverride() { - XCTAssertNotNil(plugin.override()) + func testOverride() async { + let result = await plugin.override() + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-1.txt index 37c7ece64..185b285a7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-1.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-2.txt index 37c7ece64..185b285a7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-2.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-0.txt index 49e995042..340983755 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-0.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(plugin.create()) + func testCreate() async { + let result = await plugin.create() + XCTAssertNotNil(result) } @MainActor - func testOverride() { - XCTAssertNotNil(plugin.override()) + func testOverride() async { + let result = await plugin.override() + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-1.txt index 37c7ece64..185b285a7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-1.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-2.txt index 37c7ece64..185b285a7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-2.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-0.txt index 49e995042..340983755 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-0.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(plugin.create()) + func testCreate() async { + let result = await plugin.create() + XCTAssertNotNil(result) } @MainActor - func testOverride() { - XCTAssertNotNil(plugin.override()) + func testOverride() async { + let result = await plugin.override() + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-1.txt index 37c7ece64..185b285a7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-1.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-2.txt index 37c7ece64..185b285a7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-2.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-0.txt index 49e995042..340983755 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-0.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(plugin.create()) + func testCreate() async { + let result = await plugin.create() + XCTAssertNotNil(result) } @MainActor - func testOverride() { - XCTAssertNotNil(plugin.override()) + func testOverride() async { + let result = await plugin.override() + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-1.txt index 37c7ece64..185b285a7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-1.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-2.txt index 37c7ece64..185b285a7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-2.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-0.txt index 49e995042..340983755 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-0.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(plugin.create()) + func testCreate() async { + let result = await plugin.create() + XCTAssertNotNil(result) } @MainActor - func testOverride() { - XCTAssertNotNil(plugin.override()) + func testOverride() async { + let result = await plugin.override() + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-1.txt index 37c7ece64..185b285a7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-1.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-2.txt index 37c7ece64..185b285a7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-2.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt index b7a6b5720..3d34cf994 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt @@ -79,17 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt index fffa48109..1434ef035 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt @@ -85,25 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt index 9aab31879..70a44a6d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt index 34c4ea4f9..7fa21cef9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt @@ -81,17 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt index b83257337..e8ca43519 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt index 6b62627b7..5b8db0486 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt @@ -89,25 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt index b7a6b5720..3d34cf994 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt @@ -79,17 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt index fffa48109..1434ef035 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt @@ -85,25 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt index 9aab31879..70a44a6d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt @@ -87,25 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) -> Flow { - build(withListener: listener as Listener) + ) async -> Flow { + await build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) -> Flow { + ) async -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) -> Flow { + ) async -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-0.txt index 117d706ea..1b66befec 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-0.txt @@ -29,7 +29,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(builder.build(withListener: listenerMock)) + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-1.txt index 8ffec0bd4..3dd552984 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-1.txt @@ -31,7 +31,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-2.txt index 49331c450..735d1d1bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-2.txt @@ -32,7 +32,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt index 117d706ea..1b66befec 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt @@ -29,7 +29,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(builder.build(withListener: listenerMock)) + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt index 8ffec0bd4..3dd552984 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt @@ -31,7 +31,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt index 49331c450..735d1d1bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt @@ -32,7 +32,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-0.txt index 117d706ea..1b66befec 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-0.txt @@ -29,7 +29,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(builder.build(withListener: listenerMock)) + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-1.txt index 8ffec0bd4..3dd552984 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-1.txt @@ -31,7 +31,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-2.txt index 49331c450..735d1d1bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-2.txt @@ -32,7 +32,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-0.txt index 117d706ea..1b66befec 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-0.txt @@ -29,7 +29,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(builder.build(withListener: listenerMock)) + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-1.txt index 8ffec0bd4..3dd552984 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-1.txt @@ -31,7 +31,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-2.txt index 49331c450..735d1d1bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-2.txt @@ -32,7 +32,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt index 117d706ea..1b66befec 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt @@ -29,7 +29,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(builder.build(withListener: listenerMock)) + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt index 8ffec0bd4..3dd552984 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt @@ -31,7 +31,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt index 49331c450..735d1d1bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt @@ -32,7 +32,8 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-0.txt index b29606379..09f6b5ab9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-1.txt index e4ab5b6a3..fb159c30f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-2.txt index 134a22f04..54d41d7b5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) -> Flow + ) async -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt index 03420e0c1..84c04a68b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt index 9f80bc65a..b0a5c4f45 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt @@ -73,7 +73,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt index 0e9ecda10..42341db81 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt @@ -74,7 +74,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt index 03420e0c1..84c04a68b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt @@ -70,7 +70,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt index 9f80bc65a..b0a5c4f45 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt @@ -73,7 +73,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt index 0e9ecda10..42341db81 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt @@ -74,7 +74,7 @@ internal final class PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) -> Builder { + ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-0.txt index 4acfeb999..a7739ff68 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-0.txt @@ -26,12 +26,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - XCTAssertNotNil(plugin.create()) + func testCreate() async { + let result = await plugin.create() + XCTAssertNotNil(result) } @MainActor - func testOverride() { - XCTAssertNotNil(plugin.override()) + func testOverride() async { + let result = await plugin.override() + XCTAssertNotNil(result) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-1.txt index fa8eee96b..2f453ea40 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-1.txt @@ -28,12 +28,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-2.txt index b8c08f5af..d4954fb77 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-2.txt @@ -29,12 +29,14 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt index 62c03b80c..30fc7f056 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt @@ -85,17 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Interface.txt index 9eeb5b5a4..ff327c352 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt index 268cb51a2..37283f9f7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt @@ -84,25 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) -> ___VARIABLE_PluginListName___Flow { - build(withListener: listener as ___VARIABLE_productName___Listener) + ) async -> ___VARIABLE_PluginListName___Flow { + await build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Interface.txt index 48b01e193..1c87209c8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt index 537c61d1f..73c4e0eba 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt @@ -83,17 +83,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Interface.txt index 9eeb5b5a4..ff327c352 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt index f71eb4ff1..26a883137 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt @@ -82,25 +82,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) -> ___VARIABLE_PluginListName___Flow { - build(withListener: listener as ___VARIABLE_productName___Listener) + ) async -> ___VARIABLE_PluginListName___Flow { + await build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt index 48b01e193..1c87209c8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt index 62c03b80c..30fc7f056 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt @@ -85,17 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Interface.txt index 9eeb5b5a4..ff327c352 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt index 268cb51a2..37283f9f7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt @@ -84,25 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) -> ___VARIABLE_PluginListName___Flow { - build(withListener: listener as ___VARIABLE_productName___Listener) + ) async -> ___VARIABLE_PluginListName___Flow { + await build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Interface.txt index 48b01e193..1c87209c8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt index 62c03b80c..30fc7f056 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt @@ -85,17 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Interface.txt index 9eeb5b5a4..ff327c352 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt index 268cb51a2..37283f9f7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt @@ -84,25 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) -> ___VARIABLE_PluginListName___Flow { - build(withListener: listener as ___VARIABLE_productName___Listener) + ) async -> ___VARIABLE_PluginListName___Flow { + await build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Interface.txt index 48b01e193..1c87209c8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt index 537c61d1f..73c4e0eba 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt @@ -83,17 +83,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Interface.txt index 9eeb5b5a4..ff327c352 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt index f71eb4ff1..26a883137 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt @@ -82,25 +82,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) -> ___VARIABLE_PluginListName___Flow { - build(withListener: listener as ___VARIABLE_productName___Listener) + ) async -> ___VARIABLE_PluginListName___Flow { + await build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt index 48b01e193..1c87209c8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt index 6d750828b..905214644 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt @@ -86,17 +86,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder internal func build( withListener listener: ___VARIABLE_productName___Listener, viewController: ___VARIABLE_productName___ViewControllable - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency.0 let viewController: ___VARIABLE_productName___ViewControllable = dynamicBuildDependency.1 let analytics: ___VARIABLE_productName___AnalyticsImp = .init() diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-BuilderTests.txt index b276fa54e..8bedbec2f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-BuilderTests.txt @@ -36,7 +36,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock, viewController: viewControllableMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock, viewController: viewControllableMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Interface.txt index ccf913b89..97330d875 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Interface.txt @@ -28,5 +28,5 @@ internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener, viewController: ___VARIABLE_productName___ViewControllable - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt index 62c03b80c..30fc7f056 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt @@ -85,17 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Interface.txt index 9eeb5b5a4..ff327c352 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt index 268cb51a2..37283f9f7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt @@ -84,25 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) -> ___VARIABLE_PluginListName___Flow { - build(withListener: listener as ___VARIABLE_productName___Listener) + ) async -> ___VARIABLE_PluginListName___Flow { + await build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Interface.txt index 48b01e193..1c87209c8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt index 537c61d1f..73c4e0eba 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt @@ -83,17 +83,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Interface.txt index 9eeb5b5a4..ff327c352 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt index f71eb4ff1..26a883137 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt @@ -82,25 +82,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) -> ___VARIABLE_PluginListName___Flow { - build(withListener: listener as ___VARIABLE_productName___Listener) + ) async -> ___VARIABLE_PluginListName___Flow { + await build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt index 48b01e193..1c87209c8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt index 62c03b80c..30fc7f056 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt @@ -85,17 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Interface.txt index 9eeb5b5a4..ff327c352 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt index 268cb51a2..37283f9f7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt @@ -84,25 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) -> ___VARIABLE_PluginListName___Flow { - build(withListener: listener as ___VARIABLE_productName___Listener) + ) async -> ___VARIABLE_PluginListName___Flow { + await build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Interface.txt index 48b01e193..1c87209c8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt index 62c03b80c..30fc7f056 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt @@ -85,17 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Interface.txt index 9eeb5b5a4..ff327c352 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt index 268cb51a2..37283f9f7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt @@ -84,25 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) -> ___VARIABLE_PluginListName___Flow { - build(withListener: listener as ___VARIABLE_productName___Listener) + ) async -> ___VARIABLE_PluginListName___Flow { + await build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Interface.txt index 48b01e193..1c87209c8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt index 537c61d1f..73c4e0eba 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt @@ -83,17 +83,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Interface.txt index 9eeb5b5a4..ff327c352 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt index f71eb4ff1..26a883137 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt @@ -82,25 +82,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) -> ___VARIABLE_PluginListName___Flow { - build(withListener: listener as ___VARIABLE_productName___Listener) + ) async -> ___VARIABLE_PluginListName___Flow { + await build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt index 61f2c792d..74c535afb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt @@ -33,7 +33,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt index 48b01e193..1c87209c8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt index 6d750828b..905214644 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt @@ -86,17 +86,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder internal func build( withListener listener: ___VARIABLE_productName___Listener, viewController: ___VARIABLE_productName___ViewControllable - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return build(dynamicBuildDependency, dynamicComponentDependency) + return await build(dynamicBuildDependency, dynamicComponentDependency) } /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) -> ___VARIABLE_productName___Flow { + ) async -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency.0 let viewController: ___VARIABLE_productName___ViewControllable = dynamicBuildDependency.1 let analytics: ___VARIABLE_productName___AnalyticsImp = .init() diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-BuilderTests.txt index b276fa54e..8bedbec2f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-BuilderTests.txt @@ -36,7 +36,8 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in builder.build(withListener: listenerMock, viewController: viewControllableMock) } != nil + func testCreate() async { + let result = await builder.build(withListener: listenerMock, viewController: viewControllableMock) + expect(result) != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Interface.txt index ccf913b89..97330d875 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Interface.txt @@ -28,5 +28,5 @@ internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener, viewController: ___VARIABLE_productName___ViewControllable - ) -> ___VARIABLE_productName___Flow + ) async -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt index c62618f6a..c2102ae1a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt @@ -73,7 +73,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) -> ___VARIABLE_productName___Builder { + ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-PluginTests.txt index fdb1359a1..0dbb2504d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-PluginTests.txt @@ -30,12 +30,14 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() { - expect { [self] in plugin.create() } != nil + func testCreate() async { + let result = await plugin.create() + expect(result) != nil } @MainActor - func testOverride() { - expect { [self] in plugin.override() } != nil + func testOverride() async { + let result = await plugin.override() + expect(result) != nil } } diff --git a/Tests/NodesTests/CoreTests/AbstractBuilderTests.swift b/Tests/NodesTests/CoreTests/AbstractBuilderTests.swift index d319d4885..af7ad19e6 100644 --- a/Tests/NodesTests/CoreTests/AbstractBuilderTests.swift +++ b/Tests/NodesTests/CoreTests/AbstractBuilderTests.swift @@ -25,12 +25,27 @@ final class AbstractBuilderTests: XCTestCase { } } + private class AsyncTestBuilder: AbstractBuilder { + + // swiftlint:disable:next unused_parameter + override func build(component: ComponentType, dynamicBuildDependency: Void) async -> BuildType { + BuildType() + } + } + @MainActor func testBuild() { let builder: TestBuilder = givenBuilder { ComponentType() } expect(builder.build()).to(beAKindOf(BuildType.self)) } + @MainActor + func testAsyncBuild() async { + let builder: AsyncTestBuilder = givenAsyncBuilder { ComponentType() } + let result = await builder.buildAsync() + expect(result).to(beAKindOf(BuildType.self)) + } + @MainActor func testAssertions() { let builder: AbstractBuilder = .init { ComponentType() } @@ -44,6 +59,13 @@ final class AbstractBuilderTests: XCTestCase { expect(builder).to(notBeNilAndToDeallocateAfterTest()) return builder } + + @MainActor + private func givenAsyncBuilder(componentFactory: @escaping () -> ComponentType) -> AsyncTestBuilder { + let builder: AsyncTestBuilder = .init(componentFactory: componentFactory) + expect(builder).to(notBeNilAndToDeallocateAfterTest()) + return builder + } } extension AbstractBuilder where DynamicBuildDependencyType == Void, DynamicComponentDependencyType == Void { @@ -51,4 +73,8 @@ extension AbstractBuilder where DynamicBuildDependencyType == Void, DynamicCompo func build() -> BuildType { build((), ()) } + + func buildAsync() async -> BuildType { + await build((), ()) + } } diff --git a/Tests/NodesTests/CoreTests/ConfigTests/PluginTests.swift b/Tests/NodesTests/CoreTests/ConfigTests/PluginTests.swift index fcb82053b..45de11497 100644 --- a/Tests/NodesTests/CoreTests/ConfigTests/PluginTests.swift +++ b/Tests/NodesTests/CoreTests/ConfigTests/PluginTests.swift @@ -32,6 +32,21 @@ final class PluginTests: XCTestCase, TestCaseHelpers { } } + private class AsyncTestPlugin: Plugin { + + var isEnabledOverride: Bool = true + + // swiftlint:disable:next unused_parameter + override func isEnabled(component: ComponentType, state: Void) -> Bool { + isEnabledOverride + } + + // swiftlint:disable:next unused_parameter + override func build(component: ComponentType) async -> BuildType { + BuildType() + } + } + @MainActor func testCreate() { let plugin: TestPlugin = .init { ComponentType() } @@ -41,6 +56,17 @@ final class PluginTests: XCTestCase, TestCaseHelpers { expect(plugin.create()) == nil } + @MainActor + func testAsyncCreate() async { + let plugin: AsyncTestPlugin = .init { ComponentType() } + expect(plugin).to(notBeNilAndToDeallocateAfterTest()) + let result = await plugin.create() + expect(result).to(beAKindOf(BuildType.self)) + plugin.isEnabledOverride = false + let nilResult = await plugin.create() + expect(nilResult).to(beNil()) + } + @MainActor func testOverride() { let plugin: TestPlugin = .init { ComponentType() } @@ -48,6 +74,14 @@ final class PluginTests: XCTestCase, TestCaseHelpers { expect(plugin.override()).to(beAKindOf(BuildType.self)) } + @MainActor + func testAsyncOverride() async { + let plugin: AsyncTestPlugin = .init { ComponentType() } + expect(plugin).to(notBeNilAndToDeallocateAfterTest()) + let result = await plugin.override() + expect(result).to(beAKindOf(BuildType.self)) + } + @MainActor func testAssertions() { let component: ComponentType = .init() @@ -55,4 +89,5 @@ final class PluginTests: XCTestCase, TestCaseHelpers { expect(plugin.isEnabled(component: component, state: ())).to(throwAssertion()) expect(plugin.build(component: component)).to(throwAssertion()) } + } From fdec6022f90afbb790f9f39f0d0758d97f497c06 Mon Sep 17 00:00:00 2001 From: Aleksey Krauchuk Date: Fri, 27 Mar 2026 16:49:13 +0100 Subject: [PATCH 2/8] remove sync methods deprecation --- Sources/Nodes/Core/AbstractBuilder.swift | 1 - Sources/Nodes/Core/Config/Plugin.swift | 1 - 2 files changed, 2 deletions(-) diff --git a/Sources/Nodes/Core/AbstractBuilder.swift b/Sources/Nodes/Core/AbstractBuilder.swift index 80b203e61..bf8054a2d 100644 --- a/Sources/Nodes/Core/AbstractBuilder.swift +++ b/Sources/Nodes/Core/AbstractBuilder.swift @@ -64,7 +64,6 @@ open class AbstractBuilder { /// - Parameter component: The `ComponentType` instance. /// /// - Returns: A `BuildType` instance. - @available(*, deprecated, message: "Override the async variant instead") open func build(component: ComponentType) -> BuildType { // swiftlint:disable:this unavailable_function preconditionFailure("Method in abstract base class must be overridden") } From 5a56203172fbe681ac6fbbbb3160523735fdb1f0 Mon Sep 17 00:00:00 2001 From: Aleksey Krauchuk Date: Fri, 27 Mar 2026 17:16:24 +0100 Subject: [PATCH 3/8] fix swiftlint warnings --- Sources/Nodes/Core/AbstractBuilder.swift | 5 +++-- Sources/Nodes/Core/Config/Plugin.swift | 1 + .../Resources/Stencils/Builder-SwiftUI.stencil | 1 + .../NodesGenerator/Resources/Stencils/Builder.stencil | 1 + .../NodesGenerator/Resources/Stencils/Plugin.stencil | 1 + ...testGenerateAppPreset.Contents-AppBuilder-swift.txt | 1 + ...stGenerateRootPreset.Contents-RootBuilder-swift.txt | 1 + ...teScenePreset.Contents-WindowSceneBuilder-swift.txt | 1 + ...nerateWindowPreset.Contents-WindowBuilder-swift.txt | 1 + .../testRenderNode.Builder-AppKit-mockCount-0.txt | 1 + .../testRenderNode.Builder-AppKit-mockCount-1.txt | 1 + .../testRenderNode.Builder-AppKit-mockCount-2.txt | 1 + ...estRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt | 1 + ...estRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt | 1 + ...estRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt | 1 + .../testRenderNode.Builder-Custom-mockCount-0.txt | 1 + .../testRenderNode.Builder-Custom-mockCount-1.txt | 1 + .../testRenderNode.Builder-Custom-mockCount-2.txt | 1 + .../testRenderNode.Builder-UIKit-mockCount-0.txt | 1 + .../testRenderNode.Builder-UIKit-mockCount-1.txt | 1 + .../testRenderNode.Builder-UIKit-mockCount-2.txt | 1 + ...testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt | 1 + ...testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt | 1 + ...testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt | 1 + ...stRenderNodePresetApp.Builder-UIKit-mockCount-0.txt | 1 + ...stRenderNodePresetApp.Builder-UIKit-mockCount-1.txt | 1 + ...stRenderNodePresetApp.Builder-UIKit-mockCount-2.txt | 1 + ...tRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt | 1 + ...tRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt | 1 + ...tRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt | 1 + ...RenderNodePresetScene.Builder-UIKit-mockCount-0.txt | 1 + ...RenderNodePresetScene.Builder-UIKit-mockCount-1.txt | 1 + ...RenderNodePresetScene.Builder-UIKit-mockCount-2.txt | 1 + ...enderNodePresetWindow.Builder-UIKit-mockCount-0.txt | 1 + ...enderNodePresetWindow.Builder-UIKit-mockCount-1.txt | 1 + ...enderNodePresetWindow.Builder-UIKit-mockCount-2.txt | 1 + .../testRenderNodeViewInjected.Builder-mockCount-0.txt | 1 + .../testRenderNodeViewInjected.Builder-mockCount-1.txt | 1 + .../testRenderNodeViewInjected.Builder-mockCount-2.txt | 1 + ...enderNode_withPlugin.Builder-AppKit-mockCount-0.txt | 1 + ...enderNode_withPlugin.Builder-AppKit-mockCount-1.txt | 1 + ...enderNode_withPlugin.Builder-AppKit-mockCount-2.txt | 1 + ...de_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt | 1 + ...de_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt | 1 + ...de_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt | 1 + ...enderNode_withPlugin.Builder-Custom-mockCount-0.txt | 1 + ...enderNode_withPlugin.Builder-Custom-mockCount-1.txt | 1 + ...enderNode_withPlugin.Builder-Custom-mockCount-2.txt | 1 + ...RenderNode_withPlugin.Builder-UIKit-mockCount-0.txt | 1 + ...RenderNode_withPlugin.Builder-UIKit-mockCount-1.txt | 1 + ...RenderNode_withPlugin.Builder-UIKit-mockCount-2.txt | 1 + ...ode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt | 1 + ...ode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt | 1 + ...ode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt | 1 + ...RenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt | 1 + ...RenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt | 1 + ...RenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt | 1 + ...ode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt | 1 + ...ode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt | 1 + ...ode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt | 1 + ...RenderNode_withPlugin.Plugin-Custom-mockCount-0.txt | 1 + ...RenderNode_withPlugin.Plugin-Custom-mockCount-1.txt | 1 + ...RenderNode_withPlugin.Plugin-Custom-mockCount-2.txt | 1 + ...tRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt | 1 + ...tRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt | 1 + ...tRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt | 1 + ...Node_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt | 1 + ...Node_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt | 1 + ...Node_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt | 1 + ...e_withPluginAndTests.Builder-AppKit-mockCount-0.txt | 1 + ...e_withPluginAndTests.Builder-AppKit-mockCount-1.txt | 1 + ...e_withPluginAndTests.Builder-AppKit-mockCount-2.txt | 1 + ...luginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt | 1 + ...luginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt | 1 + ...luginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt | 1 + ...e_withPluginAndTests.Builder-Custom-mockCount-0.txt | 1 + ...e_withPluginAndTests.Builder-Custom-mockCount-1.txt | 1 + ...e_withPluginAndTests.Builder-Custom-mockCount-2.txt | 1 + ...de_withPluginAndTests.Builder-UIKit-mockCount-0.txt | 1 + ...de_withPluginAndTests.Builder-UIKit-mockCount-1.txt | 1 + ...de_withPluginAndTests.Builder-UIKit-mockCount-2.txt | 1 + ...PluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt | 1 + ...PluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt | 1 + ...PluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt | 1 + ...de_withPluginAndTests.Plugin-AppKit-mockCount-0.txt | 1 + ...de_withPluginAndTests.Plugin-AppKit-mockCount-1.txt | 1 + ...de_withPluginAndTests.Plugin-AppKit-mockCount-2.txt | 1 + ...PluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt | 1 + ...PluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt | 1 + ...PluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt | 1 + ...de_withPluginAndTests.Plugin-Custom-mockCount-0.txt | 1 + ...de_withPluginAndTests.Plugin-Custom-mockCount-1.txt | 1 + ...de_withPluginAndTests.Plugin-Custom-mockCount-2.txt | 1 + ...ode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt | 1 + ...ode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt | 1 + ...ode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt | 1 + ...hPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt | 1 + ...hPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt | 1 + ...hPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt | 1 + ...RenderNode_withTests.Builder-AppKit-mockCount-0.txt | 1 + ...RenderNode_withTests.Builder-AppKit-mockCount-1.txt | 1 + ...RenderNode_withTests.Builder-AppKit-mockCount-2.txt | 1 + ...ode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt | 1 + ...ode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt | 1 + ...ode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt | 1 + ...RenderNode_withTests.Builder-Custom-mockCount-0.txt | 1 + ...RenderNode_withTests.Builder-Custom-mockCount-1.txt | 1 + ...RenderNode_withTests.Builder-Custom-mockCount-2.txt | 1 + ...tRenderNode_withTests.Builder-UIKit-mockCount-0.txt | 1 + ...tRenderNode_withTests.Builder-UIKit-mockCount-1.txt | 1 + ...tRenderNode_withTests.Builder-UIKit-mockCount-2.txt | 1 + ...Node_withTests.Builder-UIKitSwiftUI-mockCount-0.txt | 1 + ...Node_withTests.Builder-UIKitSwiftUI-mockCount-1.txt | 1 + ...Node_withTests.Builder-UIKitSwiftUI-mockCount-2.txt | 1 + .../testRenderPlugin.Plugin-mockCount-0.txt | 1 + .../testRenderPlugin.Plugin-mockCount-1.txt | 1 + .../testRenderPlugin.Plugin-mockCount-2.txt | 1 + .../testRenderPlugin_withTests.Plugin-mockCount-0.txt | 1 + .../testRenderPlugin_withTests.Plugin-mockCount-1.txt | 1 + .../testRenderPlugin_withTests.Plugin-mockCount-2.txt | 1 + ...tGenerateWithIdentifier.Contents-AppKit-Builder.txt | 1 + ...stGenerateWithIdentifier.Contents-AppKit-Plugin.txt | 1 + ...ier.Contents-AppKitCreatedForPluginList-Builder.txt | 1 + ...fier.Contents-AppKitCreatedForPluginList-Plugin.txt | 1 + ...teWithIdentifier.Contents-AppKitSwiftUI-Builder.txt | 1 + ...ateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt | 1 + ...tents-AppKitSwiftUICreatedForPluginList-Builder.txt | 1 + ...ntents-AppKitSwiftUICreatedForPluginList-Plugin.txt | 1 + ...tGenerateWithIdentifier.Contents-Custom-Builder.txt | 1 + ...stGenerateWithIdentifier.Contents-Custom-Plugin.txt | 1 + ...ier.Contents-CustomCreatedForPluginList-Builder.txt | 1 + ...fier.Contents-CustomCreatedForPluginList-Plugin.txt | 1 + ...stGenerateWithIdentifier.Contents-Plugin-Plugin.txt | 1 + ...stGenerateWithIdentifier.Contents-UIKit-Builder.txt | 1 + ...estGenerateWithIdentifier.Contents-UIKit-Plugin.txt | 1 + ...fier.Contents-UIKitCreatedForPluginList-Builder.txt | 1 + ...ifier.Contents-UIKitCreatedForPluginList-Plugin.txt | 1 + ...ateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt | 1 + ...rateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt | 1 + ...ntents-UIKitSwiftUICreatedForPluginList-Builder.txt | 1 + ...ontents-UIKitSwiftUICreatedForPluginList-Plugin.txt | 1 + ...ateWithIdentifier.Contents-ViewInjected-Builder.txt | 1 + ...rateWithIdentifier.Contents-ViewInjected-Plugin.txt | 1 + .../testGenerateWithURL.Contents-AppKit-Builder.txt | 1 + .../testGenerateWithURL.Contents-AppKit-Plugin.txt | 1 + ...URL.Contents-AppKitCreatedForPluginList-Builder.txt | 1 + ...hURL.Contents-AppKitCreatedForPluginList-Plugin.txt | 1 + ...tGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt | 1 + ...stGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt | 1 + ...tents-AppKitSwiftUICreatedForPluginList-Builder.txt | 1 + ...ntents-AppKitSwiftUICreatedForPluginList-Plugin.txt | 1 + .../testGenerateWithURL.Contents-Custom-Builder.txt | 1 + .../testGenerateWithURL.Contents-Custom-Plugin.txt | 1 + ...URL.Contents-CustomCreatedForPluginList-Builder.txt | 1 + ...hURL.Contents-CustomCreatedForPluginList-Plugin.txt | 1 + .../testGenerateWithURL.Contents-Plugin-Plugin.txt | 1 + .../testGenerateWithURL.Contents-UIKit-Builder.txt | 1 + .../testGenerateWithURL.Contents-UIKit-Plugin.txt | 1 + ...hURL.Contents-UIKitCreatedForPluginList-Builder.txt | 1 + ...thURL.Contents-UIKitCreatedForPluginList-Plugin.txt | 1 + ...stGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt | 1 + ...estGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt | 1 + ...ntents-UIKitSwiftUICreatedForPluginList-Builder.txt | 1 + ...ontents-UIKitSwiftUICreatedForPluginList-Plugin.txt | 1 + ...stGenerateWithURL.Contents-ViewInjected-Builder.txt | 1 + ...estGenerateWithURL.Contents-ViewInjected-Plugin.txt | 1 + Tests/NodesTests/CoreTests/AbstractBuilderTests.swift | 4 ++-- .../NodesTests/CoreTests/ConfigTests/PluginTests.swift | 10 +++++----- 168 files changed, 175 insertions(+), 9 deletions(-) diff --git a/Sources/Nodes/Core/AbstractBuilder.swift b/Sources/Nodes/Core/AbstractBuilder.swift index bf8054a2d..de66f1b44 100644 --- a/Sources/Nodes/Core/AbstractBuilder.swift +++ b/Sources/Nodes/Core/AbstractBuilder.swift @@ -108,9 +108,10 @@ open class AbstractBuilder BuildType { preconditionFailure("Method in abstract base class must be overridden") } diff --git a/Sources/Nodes/Core/Config/Plugin.swift b/Sources/Nodes/Core/Config/Plugin.swift index 607bfb4ea..a30286998 100644 --- a/Sources/Nodes/Core/Config/Plugin.swift +++ b/Sources/Nodes/Core/Config/Plugin.swift @@ -108,6 +108,7 @@ open class Plugin { /// - Parameter component: The `ComponentType` instance. /// /// - Returns: A `BuildType` instance. + // swiftlint:disable:next async_without_await unused_parameter open func build(component: ComponentType) async -> BuildType { // swiftlint:disable:this unavailable_function preconditionFailure("Method in abstract base class must be overridden") } diff --git a/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil b/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil index bc693f76d..c36157e90 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil @@ -122,6 +122,7 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: {{ node_name }}Component, dynamicBuildDependency: {{ node_name }}DynamicBuildDependency diff --git a/Sources/NodesGenerator/Resources/Stencils/Builder.stencil b/Sources/NodesGenerator/Resources/Stencils/Builder.stencil index 920102fc4..c9cc48ff3 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Builder.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Builder.stencil @@ -169,6 +169,7 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: {{ node_name }}Component, dynamicBuildDependency: {{ node_name }}DynamicBuildDependency diff --git a/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil b/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil index a841307ed..8437dcec2 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil @@ -77,6 +77,7 @@ internal final class {{ plugin_name }}PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: {{ plugin_name }}PluginComponent ) async -> {{ plugin_name }}Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt index ba94fa9d9..db89a0278 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt @@ -86,6 +86,7 @@ internal final class AppBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt index 2e206157d..c6a9ae032 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt @@ -94,6 +94,7 @@ internal final class RootBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt index da5dd4d35..126865c1c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt @@ -99,6 +99,7 @@ internal final class WindowSceneBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt index 90a4203c7..7eda64ce3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt @@ -99,6 +99,7 @@ internal final class WindowBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt index 3d34cf994..968170e60 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt @@ -86,6 +86,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt index 1434ef035..03d18e9db 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt @@ -100,6 +100,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt index 70a44a6d2..ea8eb7122 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt index 3d34cf994..968170e60 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt @@ -86,6 +86,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt index 1434ef035..03d18e9db 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt @@ -100,6 +100,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt index 70a44a6d2..ea8eb7122 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt index bbf179905..de7677b0e 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt @@ -80,6 +80,7 @@ internal final class AppBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt index 056e630aa..b2f28d1e4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt @@ -85,6 +85,7 @@ internal final class AppBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt index 2140d98fd..018819c7e 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt @@ -86,6 +86,7 @@ internal final class AppBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt index 23379ac07..34a31a445 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class RootBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt index 8300359c0..361707b92 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt @@ -95,6 +95,7 @@ internal final class RootBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt index a71aa521f..ab4ea92de 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt @@ -97,6 +97,7 @@ internal final class RootBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt index 2ef2bc5e6..0172eba2e 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt @@ -93,6 +93,7 @@ internal final class WindowSceneBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt index ae5790329..fa46362ad 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt @@ -100,6 +100,7 @@ internal final class WindowSceneBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt index addef9a53..0b7b5deb5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt @@ -102,6 +102,7 @@ internal final class WindowSceneBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt index a690184fd..3d5ca9e56 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt @@ -93,6 +93,7 @@ internal final class WindowBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt index 67e56e9b2..b400003a4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt @@ -100,6 +100,7 @@ internal final class WindowBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt index 604531d73..14e62e181 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt @@ -102,6 +102,7 @@ internal final class WindowBuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt index 98c609eeb..6db208ab4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt @@ -89,6 +89,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt index 8856e6bcc..4659a73bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt @@ -96,6 +96,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt index 185970dff..a0dd4483f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt @@ -98,6 +98,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt index 3d34cf994..968170e60 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt @@ -86,6 +86,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt index 1434ef035..03d18e9db 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt @@ -100,6 +100,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt index 70a44a6d2..ea8eb7122 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt index 3d34cf994..968170e60 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt @@ -86,6 +86,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt index 1434ef035..03d18e9db 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt @@ -100,6 +100,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt index 70a44a6d2..ea8eb7122 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt index f9eb61ba0..6b483e764 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt index f9eb61ba0..6b483e764 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt index f9eb61ba0..6b483e764 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt index f9eb61ba0..6b483e764 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt index f9eb61ba0..6b483e764 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt index 3d34cf994..968170e60 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt @@ -86,6 +86,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt index 1434ef035..03d18e9db 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt @@ -100,6 +100,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt index 70a44a6d2..ea8eb7122 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt index 3d34cf994..968170e60 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt @@ -86,6 +86,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt index 1434ef035..03d18e9db 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt @@ -100,6 +100,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt index 70a44a6d2..ea8eb7122 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt index f9eb61ba0..6b483e764 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt index f9eb61ba0..6b483e764 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt index f9eb61ba0..6b483e764 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt index f9eb61ba0..6b483e764 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt index f9eb61ba0..6b483e764 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt index 50ce71913..f1ddec6bc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt @@ -69,6 +69,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt index 3d34cf994..968170e60 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt @@ -86,6 +86,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt index 1434ef035..03d18e9db 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt @@ -100,6 +100,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt index 70a44a6d2..ea8eb7122 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt index 7fa21cef9..0a53d2f7a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt @@ -88,6 +88,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt index e8ca43519..f70a09ace 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt index 5b8db0486..20d4a502b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt @@ -104,6 +104,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt index 3d34cf994..968170e60 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt @@ -86,6 +86,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt index 1434ef035..03d18e9db 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt @@ -100,6 +100,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt index 70a44a6d2..ea8eb7122 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt @@ -102,6 +102,7 @@ internal final class BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt index 84c04a68b..34ef8ca7f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt index b0a5c4f45..8427af5bb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt @@ -71,6 +71,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt index 42341db81..0bb077d82 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt @@ -72,6 +72,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt index 84c04a68b..34ef8ca7f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt @@ -68,6 +68,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt index b0a5c4f45..8427af5bb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt @@ -71,6 +71,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt index 42341db81..0bb077d82 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt @@ -72,6 +72,7 @@ internal final class PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt index 30fc7f056..acfbbb8d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt @@ -92,6 +92,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt index 37283f9f7..0a44b5e01 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt @@ -99,6 +99,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt index 73c4e0eba..365423a46 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt @@ -90,6 +90,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt index 26a883137..b4b51195e 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt @@ -97,6 +97,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt index 30fc7f056..acfbbb8d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt @@ -92,6 +92,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt index 37283f9f7..0a44b5e01 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt @@ -99,6 +99,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt index 30fc7f056..acfbbb8d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt @@ -92,6 +92,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt index 37283f9f7..0a44b5e01 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt @@ -99,6 +99,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt index 73c4e0eba..365423a46 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt @@ -90,6 +90,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt index 26a883137..b4b51195e 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt @@ -97,6 +97,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt index 905214644..850f96d5c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt @@ -93,6 +93,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt index 30fc7f056..acfbbb8d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt @@ -92,6 +92,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt index 37283f9f7..0a44b5e01 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt @@ -99,6 +99,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt index 73c4e0eba..365423a46 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt @@ -90,6 +90,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt index 26a883137..b4b51195e 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt @@ -97,6 +97,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt index 30fc7f056..acfbbb8d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt @@ -92,6 +92,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt index 37283f9f7..0a44b5e01 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt @@ -99,6 +99,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt index 30fc7f056..acfbbb8d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt @@ -92,6 +92,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt index 37283f9f7..0a44b5e01 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt @@ -99,6 +99,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt index 73c4e0eba..365423a46 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt @@ -90,6 +90,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt index 26a883137..b4b51195e 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt @@ -97,6 +97,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt index 905214644..850f96d5c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt @@ -93,6 +93,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder } /// Implements the factory build method where instances are initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt index c2102ae1a..7e72f266a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt @@ -71,6 +71,7 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin } /// Implements the factory build method where the instance is initialized. + // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { diff --git a/Tests/NodesTests/CoreTests/AbstractBuilderTests.swift b/Tests/NodesTests/CoreTests/AbstractBuilderTests.swift index af7ad19e6..3c9e42d81 100644 --- a/Tests/NodesTests/CoreTests/AbstractBuilderTests.swift +++ b/Tests/NodesTests/CoreTests/AbstractBuilderTests.swift @@ -27,7 +27,7 @@ final class AbstractBuilderTests: XCTestCase { private class AsyncTestBuilder: AbstractBuilder { - // swiftlint:disable:next unused_parameter + // swiftlint:disable:next unused_parameter async_without_await override func build(component: ComponentType, dynamicBuildDependency: Void) async -> BuildType { BuildType() } @@ -42,7 +42,7 @@ final class AbstractBuilderTests: XCTestCase { @MainActor func testAsyncBuild() async { let builder: AsyncTestBuilder = givenAsyncBuilder { ComponentType() } - let result = await builder.buildAsync() + let result: BuildType = await builder.buildAsync() expect(result).to(beAKindOf(BuildType.self)) } diff --git a/Tests/NodesTests/CoreTests/ConfigTests/PluginTests.swift b/Tests/NodesTests/CoreTests/ConfigTests/PluginTests.swift index 45de11497..6815f4cbc 100644 --- a/Tests/NodesTests/CoreTests/ConfigTests/PluginTests.swift +++ b/Tests/NodesTests/CoreTests/ConfigTests/PluginTests.swift @@ -41,7 +41,7 @@ final class PluginTests: XCTestCase, TestCaseHelpers { isEnabledOverride } - // swiftlint:disable:next unused_parameter + // swiftlint:disable:next unused_parameter async_without_await override func build(component: ComponentType) async -> BuildType { BuildType() } @@ -60,11 +60,11 @@ final class PluginTests: XCTestCase, TestCaseHelpers { func testAsyncCreate() async { let plugin: AsyncTestPlugin = .init { ComponentType() } expect(plugin).to(notBeNilAndToDeallocateAfterTest()) - let result = await plugin.create() + let result: BuildType? = await plugin.create() expect(result).to(beAKindOf(BuildType.self)) plugin.isEnabledOverride = false - let nilResult = await plugin.create() - expect(nilResult).to(beNil()) + let nilResult: BuildType? = await plugin.create() + expect(nilResult) == nil } @MainActor @@ -78,7 +78,7 @@ final class PluginTests: XCTestCase, TestCaseHelpers { func testAsyncOverride() async { let plugin: AsyncTestPlugin = .init { ComponentType() } expect(plugin).to(notBeNilAndToDeallocateAfterTest()) - let result = await plugin.override() + let result: BuildType = await plugin.override() expect(result).to(beAKindOf(BuildType.self)) } From a093add1b4e277087a2c5fbec05ece386f52d860 Mon Sep 17 00:00:00 2001 From: Aleksey Krauchuk Date: Mon, 30 Mar 2026 14:36:48 +0200 Subject: [PATCH 4/8] fix swiftlint warnings --- Sources/Nodes/Core/AbstractBuilder.swift | 3 ++- Sources/Nodes/Core/Config/Plugin.swift | 5 +++-- .../Resources/Stencils/Builder-SwiftUI.stencil | 3 ++- Sources/NodesGenerator/Resources/Stencils/Builder.stencil | 3 ++- Sources/NodesGenerator/Resources/Stencils/Plugin.stencil | 3 ++- .../testGenerateAppPreset.Contents-AppBuilder-swift.txt | 3 ++- .../testGenerateRootPreset.Contents-RootBuilder-swift.txt | 3 ++- ...GenerateScenePreset.Contents-WindowSceneBuilder-swift.txt | 3 ++- ...testGenerateWindowPreset.Contents-WindowBuilder-swift.txt | 3 ++- .../testRenderNode.Builder-AppKit-mockCount-0.txt | 3 ++- .../testRenderNode.Builder-AppKit-mockCount-1.txt | 3 ++- .../testRenderNode.Builder-AppKit-mockCount-2.txt | 3 ++- .../testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt | 3 ++- .../testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt | 3 ++- .../testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt | 3 ++- .../testRenderNode.Builder-Custom-mockCount-0.txt | 3 ++- .../testRenderNode.Builder-Custom-mockCount-1.txt | 3 ++- .../testRenderNode.Builder-Custom-mockCount-2.txt | 3 ++- .../testRenderNode.Builder-UIKit-mockCount-0.txt | 3 ++- .../testRenderNode.Builder-UIKit-mockCount-1.txt | 3 ++- .../testRenderNode.Builder-UIKit-mockCount-2.txt | 3 ++- .../testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt | 3 ++- .../testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt | 3 ++- .../testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt | 3 ++- .../testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt | 3 ++- .../testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt | 3 ++- .../testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt | 3 ++- .../testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt | 3 ++- .../testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt | 3 ++- .../testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt | 3 ++- .../testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt | 3 ++- .../testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt | 3 ++- .../testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt | 3 ++- .../testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt | 3 ++- .../testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt | 3 ++- .../testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt | 3 ++- .../testRenderNodeViewInjected.Builder-mockCount-0.txt | 3 ++- .../testRenderNodeViewInjected.Builder-mockCount-1.txt | 3 ++- .../testRenderNodeViewInjected.Builder-mockCount-2.txt | 3 ++- .../testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt | 3 ++- .../testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt | 3 ++- .../testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt | 3 ++- ...nderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt | 3 ++- ...nderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt | 3 ++- ...nderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt | 3 ++- .../testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt | 3 ++- .../testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt | 3 ++- .../testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt | 3 ++- .../testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt | 3 ++- .../testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt | 3 ++- .../testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt | 3 ++- ...enderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt | 3 ++- ...enderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt | 3 ++- ...enderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt | 3 ++- .../testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt | 3 ++- .../testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt | 3 ++- .../testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt | 3 ++- ...enderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt | 3 ++- ...enderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt | 3 ++- ...enderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt | 3 ++- .../testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt | 3 ++- .../testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt | 3 ++- .../testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt | 3 ++- .../testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt | 3 ++- .../testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt | 3 ++- .../testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt | 3 ++- ...RenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt | 3 ++- ...RenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt | 3 ++- ...RenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt | 3 ++- ...derNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt | 3 ++- ...derNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt | 3 ++- ...derNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt | 3 ++- ..._withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt | 3 ++- ..._withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt | 3 ++- ..._withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt | 3 ++- ...derNode_withPluginAndTests.Builder-Custom-mockCount-0.txt | 3 ++- ...derNode_withPluginAndTests.Builder-Custom-mockCount-1.txt | 3 ++- ...derNode_withPluginAndTests.Builder-Custom-mockCount-2.txt | 3 ++- ...nderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt | 3 ++- ...nderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt | 3 ++- ...nderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt | 3 ++- ...e_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt | 3 ++- ...e_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt | 3 ++- ...e_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt | 3 ++- ...nderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt | 3 ++- ...nderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt | 3 ++- ...nderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt | 3 ++- ...e_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt | 3 ++- ...e_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt | 3 ++- ...e_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt | 3 ++- ...nderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt | 3 ++- ...nderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt | 3 ++- ...nderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt | 3 ++- ...enderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt | 3 ++- ...enderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt | 3 ++- ...enderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt | 3 ++- ...de_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt | 3 ++- ...de_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt | 3 ++- ...de_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt | 3 ++- .../testRenderNode_withTests.Builder-AppKit-mockCount-0.txt | 3 ++- .../testRenderNode_withTests.Builder-AppKit-mockCount-1.txt | 3 ++- .../testRenderNode_withTests.Builder-AppKit-mockCount-2.txt | 3 ++- ...enderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt | 3 ++- ...enderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt | 3 ++- ...enderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt | 3 ++- .../testRenderNode_withTests.Builder-Custom-mockCount-0.txt | 3 ++- .../testRenderNode_withTests.Builder-Custom-mockCount-1.txt | 3 ++- .../testRenderNode_withTests.Builder-Custom-mockCount-2.txt | 3 ++- .../testRenderNode_withTests.Builder-UIKit-mockCount-0.txt | 3 ++- .../testRenderNode_withTests.Builder-UIKit-mockCount-1.txt | 3 ++- .../testRenderNode_withTests.Builder-UIKit-mockCount-2.txt | 3 ++- ...RenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt | 3 ++- ...RenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt | 3 ++- ...RenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt | 3 ++- .../testRenderPlugin.Plugin-mockCount-0.txt | 3 ++- .../testRenderPlugin.Plugin-mockCount-1.txt | 3 ++- .../testRenderPlugin.Plugin-mockCount-2.txt | 3 ++- .../testRenderPlugin_withTests.Plugin-mockCount-0.txt | 3 ++- .../testRenderPlugin_withTests.Plugin-mockCount-1.txt | 3 ++- .../testRenderPlugin_withTests.Plugin-mockCount-2.txt | 3 ++- .../testGenerateWithIdentifier.Contents-AppKit-Builder.txt | 3 ++- .../testGenerateWithIdentifier.Contents-AppKit-Plugin.txt | 3 ++- ...dentifier.Contents-AppKitCreatedForPluginList-Builder.txt | 3 ++- ...Identifier.Contents-AppKitCreatedForPluginList-Plugin.txt | 3 ++- ...GenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt | 3 ++- ...tGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt | 3 ++- ...er.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt | 3 ++- ...ier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt | 3 ++- .../testGenerateWithIdentifier.Contents-Custom-Builder.txt | 3 ++- .../testGenerateWithIdentifier.Contents-Custom-Plugin.txt | 3 ++- ...dentifier.Contents-CustomCreatedForPluginList-Builder.txt | 3 ++- ...Identifier.Contents-CustomCreatedForPluginList-Plugin.txt | 3 ++- .../testGenerateWithIdentifier.Contents-Plugin-Plugin.txt | 3 ++- .../testGenerateWithIdentifier.Contents-UIKit-Builder.txt | 3 ++- .../testGenerateWithIdentifier.Contents-UIKit-Plugin.txt | 3 ++- ...Identifier.Contents-UIKitCreatedForPluginList-Builder.txt | 3 ++- ...hIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt | 3 ++- ...tGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt | 3 ++- ...stGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt | 3 ++- ...ier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt | 3 ++- ...fier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt | 3 ++- ...tGenerateWithIdentifier.Contents-ViewInjected-Builder.txt | 3 ++- ...stGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt | 3 ++- .../testGenerateWithURL.Contents-AppKit-Builder.txt | 3 ++- .../testGenerateWithURL.Contents-AppKit-Plugin.txt | 3 ++- ...teWithURL.Contents-AppKitCreatedForPluginList-Builder.txt | 3 ++- ...ateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt | 3 ++- .../testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt | 3 ++- .../testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt | 3 ++- ...RL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt | 3 ++- ...URL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt | 3 ++- .../testGenerateWithURL.Contents-Custom-Builder.txt | 3 ++- .../testGenerateWithURL.Contents-Custom-Plugin.txt | 3 ++- ...teWithURL.Contents-CustomCreatedForPluginList-Builder.txt | 3 ++- ...ateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt | 3 ++- .../testGenerateWithURL.Contents-Plugin-Plugin.txt | 3 ++- .../testGenerateWithURL.Contents-UIKit-Builder.txt | 3 ++- .../testGenerateWithURL.Contents-UIKit-Plugin.txt | 3 ++- ...ateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt | 3 ++- ...rateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt | 3 ++- .../testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt | 3 ++- .../testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt | 3 ++- ...URL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt | 3 ++- ...hURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt | 3 ++- .../testGenerateWithURL.Contents-ViewInjected-Builder.txt | 3 ++- .../testGenerateWithURL.Contents-ViewInjected-Plugin.txt | 3 ++- 166 files changed, 333 insertions(+), 167 deletions(-) diff --git a/Sources/Nodes/Core/AbstractBuilder.swift b/Sources/Nodes/Core/AbstractBuilder.swift index de66f1b44..5c53b802d 100644 --- a/Sources/Nodes/Core/AbstractBuilder.swift +++ b/Sources/Nodes/Core/AbstractBuilder.swift @@ -108,13 +108,14 @@ open class AbstractBuilder BuildType { preconditionFailure("Method in abstract base class must be overridden") } + // swiftlint:enable async_without_await /// Async variant of ``build(_:_:)``. Creates a `ComponentType` instance and passes it to the /// async ``build(component:dynamicBuildDependency:)`` override. diff --git a/Sources/Nodes/Core/Config/Plugin.swift b/Sources/Nodes/Core/Config/Plugin.swift index a30286998..e5d71a898 100644 --- a/Sources/Nodes/Core/Config/Plugin.swift +++ b/Sources/Nodes/Core/Config/Plugin.swift @@ -108,10 +108,11 @@ open class Plugin { /// - Parameter component: The `ComponentType` instance. /// /// - Returns: A `BuildType` instance. - // swiftlint:disable:next async_without_await unused_parameter - open func build(component: ComponentType) async -> BuildType { // swiftlint:disable:this unavailable_function + // swiftlint:disable async_without_await + open func build(component: ComponentType) async -> BuildType { // swiftlint:disable:this unavailable_function unused_parameter preconditionFailure("Method in abstract base class must be overridden") } + // swiftlint:enable async_without_await /// Async variant of ``create(state:)``. Returns a `BuildType` instance when enabled, otherwise `nil`. /// diff --git a/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil b/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil index c36157e90..496d0ee69 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil @@ -121,8 +121,8 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: {{ node_name }}Component, dynamicBuildDependency: {{ node_name }}DynamicBuildDependency @@ -170,6 +170,7 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension {{ node_name }}BuilderImp: {{ node_name }}Builder {} diff --git a/Sources/NodesGenerator/Resources/Stencils/Builder.stencil b/Sources/NodesGenerator/Resources/Stencils/Builder.stencil index c9cc48ff3..e78af8908 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Builder.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Builder.stencil @@ -168,8 +168,8 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: {{ node_name }}Component, dynamicBuildDependency: {{ node_name }}DynamicBuildDependency @@ -232,6 +232,7 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension {{ node_name }}BuilderImp: {{ node_name }}Builder {} diff --git a/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil b/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil index 8437dcec2..1a0cbe3a7 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil @@ -76,13 +76,14 @@ internal final class {{ plugin_name }}PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: {{ plugin_name }}PluginComponent ) async -> {{ plugin_name }}Builder { {{ plugin_name }}BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension {{ plugin_name }}PluginImp: {{ plugin_name }}Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt index db89a0278..0dd9b2d73 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt @@ -85,8 +85,8 @@ internal final class AppBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency @@ -104,6 +104,7 @@ internal final class AppBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension AppBuilderImp: AppBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt index c6a9ae032..535851698 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt @@ -93,8 +93,8 @@ internal final class RootBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency @@ -126,6 +126,7 @@ internal final class RootBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension RootBuilderImp: RootBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt index 126865c1c..96c388e21 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt @@ -98,8 +98,8 @@ internal final class WindowSceneBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency @@ -120,6 +120,7 @@ internal final class WindowSceneBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension WindowSceneBuilderImp: WindowSceneBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt index 7eda64ce3..aac68728a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt @@ -98,8 +98,8 @@ internal final class WindowBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency @@ -120,6 +120,7 @@ internal final class WindowBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension WindowBuilderImp: WindowBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt index 968170e60..1dd139fca 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt @@ -85,8 +85,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt index 03d18e9db..8a85c7fdc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt @@ -99,8 +99,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt index ea8eb7122..92c2141c1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt index 968170e60..1dd139fca 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt @@ -85,8 +85,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt index 03d18e9db..8a85c7fdc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt @@ -99,8 +99,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt index ea8eb7122..92c2141c1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt index de7677b0e..232f04514 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt @@ -79,8 +79,8 @@ internal final class AppBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency @@ -98,6 +98,7 @@ internal final class AppBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension AppBuilderImp: AppBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt index b2f28d1e4..cdae7aca6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt @@ -84,8 +84,8 @@ internal final class AppBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency @@ -106,6 +106,7 @@ internal final class AppBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension AppBuilderImp: AppBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt index 018819c7e..da043e558 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt @@ -85,8 +85,8 @@ internal final class AppBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency @@ -109,6 +109,7 @@ internal final class AppBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension AppBuilderImp: AppBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt index 34a31a445..4dc4f1e0a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class RootBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency @@ -120,6 +120,7 @@ internal final class RootBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension RootBuilderImp: RootBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt index 361707b92..c38049d27 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt @@ -94,8 +94,8 @@ internal final class RootBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency @@ -130,6 +130,7 @@ internal final class RootBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension RootBuilderImp: RootBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt index ab4ea92de..137ccad09 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt @@ -96,8 +96,8 @@ internal final class RootBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency @@ -134,6 +134,7 @@ internal final class RootBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension RootBuilderImp: RootBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt index 0172eba2e..a30889dbf 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt @@ -92,8 +92,8 @@ internal final class WindowSceneBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency @@ -114,6 +114,7 @@ internal final class WindowSceneBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension WindowSceneBuilderImp: WindowSceneBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt index fa46362ad..2ed401d26 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt @@ -99,8 +99,8 @@ internal final class WindowSceneBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency @@ -124,6 +124,7 @@ internal final class WindowSceneBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension WindowSceneBuilderImp: WindowSceneBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt index 0b7b5deb5..1de20a464 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt @@ -101,8 +101,8 @@ internal final class WindowSceneBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency @@ -128,6 +128,7 @@ internal final class WindowSceneBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension WindowSceneBuilderImp: WindowSceneBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt index 3d5ca9e56..5e8ca161f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt @@ -92,8 +92,8 @@ internal final class WindowBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency @@ -114,6 +114,7 @@ internal final class WindowBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension WindowBuilderImp: WindowBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt index b400003a4..300edfab4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt @@ -99,8 +99,8 @@ internal final class WindowBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency @@ -124,6 +124,7 @@ internal final class WindowBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension WindowBuilderImp: WindowBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt index 14e62e181..0578848b6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt @@ -101,8 +101,8 @@ internal final class WindowBuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency @@ -128,6 +128,7 @@ internal final class WindowBuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension WindowBuilderImp: WindowBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt index 6db208ab4..5986ffb30 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt @@ -88,8 +88,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -109,6 +109,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt index 4659a73bc..954753c4e 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt @@ -95,8 +95,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -119,6 +119,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt index a0dd4483f..db004762d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt @@ -97,8 +97,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -123,6 +123,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt index 968170e60..1dd139fca 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt @@ -85,8 +85,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt index 03d18e9db..8a85c7fdc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt @@ -99,8 +99,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt index ea8eb7122..92c2141c1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt index 968170e60..1dd139fca 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt @@ -85,8 +85,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt index 03d18e9db..8a85c7fdc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt @@ -99,8 +99,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt index ea8eb7122..92c2141c1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt index 6b483e764..90c5794f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt index 6b483e764..90c5794f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt index 6b483e764..90c5794f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt index 6b483e764..90c5794f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt index 6b483e764..90c5794f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt index 968170e60..1dd139fca 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt @@ -85,8 +85,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt index 03d18e9db..8a85c7fdc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt @@ -99,8 +99,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt index ea8eb7122..92c2141c1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt index 968170e60..1dd139fca 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt @@ -85,8 +85,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt index 03d18e9db..8a85c7fdc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt @@ -99,8 +99,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt index ea8eb7122..92c2141c1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt index 6b483e764..90c5794f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt index 6b483e764..90c5794f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt index 6b483e764..90c5794f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt index 6b483e764..90c5794f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt index 6b483e764..90c5794f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt index f1ddec6bc..78e27586c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt @@ -68,13 +68,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt index 968170e60..1dd139fca 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt @@ -85,8 +85,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt index 03d18e9db..8a85c7fdc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt @@ -99,8 +99,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt index ea8eb7122..92c2141c1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt index 0a53d2f7a..3fcb1a926 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt @@ -87,8 +87,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt index f70a09ace..30182ae8b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt index 20d4a502b..4c2320eef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt @@ -103,8 +103,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt index 968170e60..1dd139fca 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt @@ -85,8 +85,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -120,6 +120,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt index 03d18e9db..8a85c7fdc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt @@ -99,8 +99,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -137,6 +137,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt index ea8eb7122..92c2141c1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt @@ -101,8 +101,8 @@ internal final class BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency @@ -141,6 +141,7 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt index 34ef8ca7f..ac79faf80 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt index 8427af5bb..78b9ada71 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt @@ -70,13 +70,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt index 0bb077d82..34ffa0390 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt @@ -71,13 +71,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt index 34ef8ca7f..ac79faf80 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt @@ -67,13 +67,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt index 8427af5bb..78b9ada71 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt @@ -70,13 +70,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt index 0bb077d82..34ffa0390 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt @@ -71,13 +71,14 @@ internal final class PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: PluginComponent ) async -> Builder { BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt index acfbbb8d2..2f1d05e27 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt @@ -91,8 +91,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -124,6 +124,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt index 0a44b5e01..3026fa702 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt @@ -98,8 +98,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -131,6 +131,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt index 365423a46..f6273b862 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt @@ -89,8 +89,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -124,6 +124,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt index b4b51195e..750b7345f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt @@ -96,8 +96,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -131,6 +131,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt index acfbbb8d2..2f1d05e27 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt @@ -91,8 +91,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -124,6 +124,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt index 0a44b5e01..3026fa702 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt @@ -98,8 +98,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -131,6 +131,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt index acfbbb8d2..2f1d05e27 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt @@ -91,8 +91,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -124,6 +124,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt index 0a44b5e01..3026fa702 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt @@ -98,8 +98,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -131,6 +131,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt index 365423a46..f6273b862 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt @@ -89,8 +89,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -124,6 +124,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt index b4b51195e..750b7345f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt @@ -96,8 +96,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -131,6 +131,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt index 850f96d5c..c83618ac8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt @@ -92,8 +92,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -113,6 +113,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt index acfbbb8d2..2f1d05e27 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt @@ -91,8 +91,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -124,6 +124,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt index 0a44b5e01..3026fa702 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt @@ -98,8 +98,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -131,6 +131,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt index 365423a46..f6273b862 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt @@ -89,8 +89,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -124,6 +124,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt index b4b51195e..750b7345f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt @@ -96,8 +96,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -131,6 +131,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt index acfbbb8d2..2f1d05e27 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt @@ -91,8 +91,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -124,6 +124,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt index 0a44b5e01..3026fa702 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt @@ -98,8 +98,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -131,6 +131,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt index acfbbb8d2..2f1d05e27 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt @@ -91,8 +91,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -124,6 +124,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt index 0a44b5e01..3026fa702 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt @@ -98,8 +98,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -131,6 +131,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt index 365423a46..f6273b862 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt @@ -89,8 +89,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -124,6 +124,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt index b4b51195e..750b7345f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt @@ -96,8 +96,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -131,6 +131,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt index 850f96d5c..c83618ac8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt @@ -92,8 +92,8 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder return await build(dynamicBuildDependency, dynamicComponentDependency) } + // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency @@ -113,6 +113,7 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt index 7e72f266a..7cfab9271 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt @@ -70,13 +70,14 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } + // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. - // swiftlint:disable:next async_without_await override internal func build( component: ___VARIABLE_productName___PluginComponent ) async -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } + // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} From 41f87b82415f6281d4a2baaabe2e3b1980e74e99 Mon Sep 17 00:00:00 2001 From: Aleksey Krauchuk Date: Tue, 31 Mar 2026 18:31:15 +0200 Subject: [PATCH 5/8] fix swiftlint and genesis warnings --- Sources/Nodes/Core/AbstractBuilder.swift | 10 +++++----- Sources/Nodes/Core/Config/Plugin.swift | 6 +++--- genesis.yml | 17 ++++++++++++----- 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/Sources/Nodes/Core/AbstractBuilder.swift b/Sources/Nodes/Core/AbstractBuilder.swift index 5c53b802d..1a6f5da99 100644 --- a/Sources/Nodes/Core/AbstractBuilder.swift +++ b/Sources/Nodes/Core/AbstractBuilder.swift @@ -94,6 +94,7 @@ open class AbstractBuilder BuildType { preconditionFailure("Method in abstract base class must be overridden") } - // swiftlint:enable async_without_await + // swiftlint:enable async_without_await unavailable_function unused_parameter /// Async variant of ``build(_:_:)``. Creates a `ComponentType` instance and passes it to the /// async ``build(component:dynamicBuildDependency:)`` override. diff --git a/Sources/Nodes/Core/Config/Plugin.swift b/Sources/Nodes/Core/Config/Plugin.swift index e5d71a898..31eaaa0a7 100644 --- a/Sources/Nodes/Core/Config/Plugin.swift +++ b/Sources/Nodes/Core/Config/Plugin.swift @@ -96,6 +96,7 @@ open class Plugin { // MARK: - Async + // swiftlint:disable async_without_await unavailable_function unused_parameter /// Async variant of ``build(component:)``. /// /// Override this instead of the synchronous version when the plugin needs to @@ -108,11 +109,10 @@ open class Plugin { /// - Parameter component: The `ComponentType` instance. /// /// - Returns: A `BuildType` instance. - // swiftlint:disable async_without_await - open func build(component: ComponentType) async -> BuildType { // swiftlint:disable:this unavailable_function unused_parameter + open func build(component: ComponentType) async -> BuildType { preconditionFailure("Method in abstract base class must be overridden") } - // swiftlint:enable async_without_await + // swiftlint:enable async_without_await unavailable_function unused_parameter /// Async variant of ``create(state:)``. Returns a `BuildType` instance when enabled, otherwise `nil`. /// diff --git a/genesis.yml b/genesis.yml index b1025da3e..cde705aea 100644 --- a/genesis.yml +++ b/genesis.yml @@ -633,7 +633,7 @@ files: return appComponentFactory() } - private lazy var appFlow: AppFlow = appBuilder.build() + private var appFlow: AppFlow? internal convenience init(appBuilder: AppBuilder) { self.init() @@ -644,19 +644,26 @@ files: _ application: UIApplication, // swiftlint:disable:next discouraged_optional_collection didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { - bootstrap() + Task { @MainActor in + await bootstrap() + } return true } - private func bootstrap() { + private func bootstrap() async { #if DEBUG guard appBuilder is AppBuilderImp - else { return appFlow.start() } + else { + appFlow = await appBuilder.build() + appFlow?.start() + return + } guard NSClassFromString("XCTestCase") == nil else { return } #endif registerProviderFactories() - appFlow.start() + appFlow = await appBuilder.build() + appFlow?.start() } } From 6a722cba4282076d6947dd7a901b31b3037b456f Mon Sep 17 00:00:00 2001 From: Aleksey Krauchuk Date: Wed, 1 Apr 2026 13:10:55 +0200 Subject: [PATCH 6/8] fix genesis error --- genesis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/genesis.yml b/genesis.yml index cde705aea..440901c35 100644 --- a/genesis.yml +++ b/genesis.yml @@ -644,12 +644,13 @@ files: _ application: UIApplication, // swiftlint:disable:next discouraged_optional_collection didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { - Task { @MainActor in + Task { await bootstrap() } return true } + @MainActor private func bootstrap() async { #if DEBUG guard appBuilder is AppBuilderImp From 871542889736f2b69eff0ef4e3f31824f95ec0a3 Mon Sep 17 00:00:00 2001 From: Aleksey Krauchuk Date: Mon, 6 Apr 2026 14:49:53 +0200 Subject: [PATCH 7/8] update Flow stencil --- .../Resources/Stencils/Flow.stencil | 24 ++++++++++++------- ...nerateAppPreset.Contents-AppFlow-swift.txt | 8 ++++--- ...ePreset.Contents-WindowSceneFlow-swift.txt | 8 ++++--- ...WindowPreset.Contents-WindowFlow-swift.txt | 8 ++++--- ...erNodePresetApp.Flow-UIKit-mockCount-0.txt | 8 ++++--- ...erNodePresetApp.Flow-UIKit-mockCount-1.txt | 8 ++++--- ...erNodePresetApp.Flow-UIKit-mockCount-2.txt | 8 ++++--- ...NodePresetScene.Flow-UIKit-mockCount-0.txt | 8 ++++--- ...NodePresetScene.Flow-UIKit-mockCount-1.txt | 8 ++++--- ...NodePresetScene.Flow-UIKit-mockCount-2.txt | 8 ++++--- ...odePresetWindow.Flow-UIKit-mockCount-0.txt | 8 ++++--- ...odePresetWindow.Flow-UIKit-mockCount-1.txt | 8 ++++--- ...odePresetWindow.Flow-UIKit-mockCount-2.txt | 8 ++++--- 13 files changed, 75 insertions(+), 45 deletions(-) diff --git a/Sources/NodesGenerator/Resources/Stencils/Flow.stencil b/Sources/NodesGenerator/Resources/Stencils/Flow.stencil index 25ed5d43b..9cd1b7cd4 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Flow.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Flow.stencil @@ -118,16 +118,20 @@ internal final class {{ node_name }}FlowImp: AbstractFlow {% if node_name == "WindowScene" %} private func attachWindow() { - let flow: WindowFlow = windowBuilder.build(withListener: context, - viewController: viewController.makeWindow()) - attach(starting: flow) + Task { + let flow: WindowFlow = await windowBuilder.build(withListener: context, + viewController: viewController.makeWindow()) + attach(starting: flow) + } } {% elif node_name == "Window" %} private func attachRoot() { - let flow: RootFlow = rootBuilder.build(withListener: context) - viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) - attach(starting: flow) + Task { + let flow: RootFlow = await rootBuilder.build(withListener: context) + viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) + attach(starting: flow) + } } {% endif %} } @@ -138,9 +142,11 @@ extension {{ node_name }}FlowImp: {{ node_name }}Flow {} extension {{ node_name }}FlowImp: {{ node_name }}FlowInterface { internal func attachWindowScene(_ viewController: WindowSceneViewControllable) { - let flow: WindowSceneFlow = windowSceneBuilder.build(withListener: context, - viewController: viewController) - attach(starting: flow) + Task { + let flow: WindowSceneFlow = await windowSceneBuilder.build(withListener: context, + viewController: viewController) + attach(starting: flow) + } } internal func detachWindowScene(_ viewController: WindowSceneViewControllable) { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppFlow-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppFlow-swift.txt index b8592be90..fe03e84ba 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppFlow-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppFlow-swift.txt @@ -35,9 +35,11 @@ extension AppFlowImp: AppFlow {} extension AppFlowImp: AppFlowInterface { internal func attachWindowScene(_ viewController: WindowSceneViewControllable) { - let flow: WindowSceneFlow = windowSceneBuilder.build(withListener: context, - viewController: viewController) - attach(starting: flow) + Task { + let flow: WindowSceneFlow = await windowSceneBuilder.build(withListener: context, + viewController: viewController) + attach(starting: flow) + } } internal func detachWindowScene(_ viewController: WindowSceneViewControllable) { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneFlow-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneFlow-swift.txt index e01de45cd..d0658d48d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneFlow-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneFlow-swift.txt @@ -38,9 +38,11 @@ internal final class WindowSceneFlowImp: AbstractFlow } private func attachWindow() { - let flow: WindowFlow = windowBuilder.build(withListener: context, - viewController: viewController.makeWindow()) - attach(starting: flow) + Task { + let flow: WindowFlow = await windowBuilder.build(withListener: context, + viewController: viewController.makeWindow()) + attach(starting: flow) + } } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowFlow-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowFlow-swift.txt index de4e8da54..247f1b255 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowFlow-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowFlow-swift.txt @@ -33,9 +33,11 @@ internal final class WindowFlowImp: AbstractFlow } private func attachRoot() { - let flow: RootFlow = rootBuilder.build(withListener: context) - viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) - attach(starting: flow) + Task { + let flow: RootFlow = await rootBuilder.build(withListener: context) + viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) + attach(starting: flow) + } } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-0.txt index e3341bd1d..78d28fa15 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-0.txt @@ -31,9 +31,11 @@ extension AppFlowImp: AppFlow {} extension AppFlowImp: AppFlowInterface { internal func attachWindowScene(_ viewController: WindowSceneViewControllable) { - let flow: WindowSceneFlow = windowSceneBuilder.build(withListener: context, - viewController: viewController) - attach(starting: flow) + Task { + let flow: WindowSceneFlow = await windowSceneBuilder.build(withListener: context, + viewController: viewController) + attach(starting: flow) + } } internal func detachWindowScene(_ viewController: WindowSceneViewControllable) { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-1.txt index 8881b3089..ca628c8de 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-1.txt @@ -37,9 +37,11 @@ extension AppFlowImp: AppFlow {} extension AppFlowImp: AppFlowInterface { internal func attachWindowScene(_ viewController: WindowSceneViewControllable) { - let flow: WindowSceneFlow = windowSceneBuilder.build(withListener: context, - viewController: viewController) - attach(starting: flow) + Task { + let flow: WindowSceneFlow = await windowSceneBuilder.build(withListener: context, + viewController: viewController) + attach(starting: flow) + } } internal func detachWindowScene(_ viewController: WindowSceneViewControllable) { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-2.txt index 6cdcaf337..a0ecbd47a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-2.txt @@ -41,9 +41,11 @@ extension AppFlowImp: AppFlow {} extension AppFlowImp: AppFlowInterface { internal func attachWindowScene(_ viewController: WindowSceneViewControllable) { - let flow: WindowSceneFlow = windowSceneBuilder.build(withListener: context, - viewController: viewController) - attach(starting: flow) + Task { + let flow: WindowSceneFlow = await windowSceneBuilder.build(withListener: context, + viewController: viewController) + attach(starting: flow) + } } internal func detachWindowScene(_ viewController: WindowSceneViewControllable) { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-0.txt index 790c957f4..3b058706f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-0.txt @@ -34,9 +34,11 @@ internal final class WindowSceneFlowImp: AbstractFlow } private func attachWindow() { - let flow: WindowFlow = windowBuilder.build(withListener: context, - viewController: viewController.makeWindow()) - attach(starting: flow) + Task { + let flow: WindowFlow = await windowBuilder.build(withListener: context, + viewController: viewController.makeWindow()) + attach(starting: flow) + } } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-1.txt index 3b06a1e1b..5f804c50b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-1.txt @@ -40,9 +40,11 @@ internal final class WindowSceneFlowImp: AbstractFlow } private func attachWindow() { - let flow: WindowFlow = windowBuilder.build(withListener: context, - viewController: viewController.makeWindow()) - attach(starting: flow) + Task { + let flow: WindowFlow = await windowBuilder.build(withListener: context, + viewController: viewController.makeWindow()) + attach(starting: flow) + } } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-2.txt index 7dbab550b..d1eeed3f2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-2.txt @@ -44,9 +44,11 @@ internal final class WindowSceneFlowImp: AbstractFlow } private func attachWindow() { - let flow: WindowFlow = windowBuilder.build(withListener: context, - viewController: viewController.makeWindow()) - attach(starting: flow) + Task { + let flow: WindowFlow = await windowBuilder.build(withListener: context, + viewController: viewController.makeWindow()) + attach(starting: flow) + } } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-0.txt index ce91ea741..49de9d185 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-0.txt @@ -29,9 +29,11 @@ internal final class WindowFlowImp: AbstractFlow } private func attachRoot() { - let flow: RootFlow = rootBuilder.build(withListener: context) - viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) - attach(starting: flow) + Task { + let flow: RootFlow = await rootBuilder.build(withListener: context) + viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) + attach(starting: flow) + } } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-1.txt index a9b416890..577b668ca 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-1.txt @@ -35,9 +35,11 @@ internal final class WindowFlowImp: AbstractFlow } private func attachRoot() { - let flow: RootFlow = rootBuilder.build(withListener: context) - viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) - attach(starting: flow) + Task { + let flow: RootFlow = await rootBuilder.build(withListener: context) + viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) + attach(starting: flow) + } } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-2.txt index 92e6ac540..37c6ec713 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-2.txt @@ -39,9 +39,11 @@ internal final class WindowFlowImp: AbstractFlow } private func attachRoot() { - let flow: RootFlow = rootBuilder.build(withListener: context) - viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) - attach(starting: flow) + Task { + let flow: RootFlow = await rootBuilder.build(withListener: context) + viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) + attach(starting: flow) + } } } From af4e254d568781165cd4b762b084491c1586b23b Mon Sep 17 00:00:00 2001 From: Aleksey Krauchuk Date: Fri, 10 Apr 2026 13:12:06 +0200 Subject: [PATCH 8/8] revert stencils to sync; pin Mockolo 2.5.0 in CI --- .github/workflows/genesis.yml | 4 +++- .../Stencils/Builder-SwiftUI.stencil | 12 ++++------ .../Resources/Stencils/Builder.stencil | 14 +++++------ .../Resources/Stencils/BuilderTests.stencil | 8 +++---- .../Resources/Stencils/Flow.stencil | 24 +++++++------------ .../Stencils/Interface-SwiftUI.stencil | 2 +- .../Resources/Stencils/Interface.stencil | 6 ++--- .../Resources/Stencils/Plugin.stencil | 4 +--- .../Resources/Stencils/PluginTests.stencil | 16 +++++-------- ...ateAppPreset.Contents-AppBuilder-swift.txt | 8 +++---- ...nerateAppPreset.Contents-AppFlow-swift.txt | 8 +++---- ...eAppPreset.Contents-AppInterface-swift.txt | 2 +- ...eRootPreset.Contents-RootBuilder-swift.txt | 8 +++---- ...ootPreset.Contents-RootInterface-swift.txt | 2 +- ...eset.Contents-WindowSceneBuilder-swift.txt | 8 +++---- ...ePreset.Contents-WindowSceneFlow-swift.txt | 8 +++---- ...et.Contents-WindowSceneInterface-swift.txt | 2 +- ...dowPreset.Contents-WindowBuilder-swift.txt | 8 +++---- ...WindowPreset.Contents-WindowFlow-swift.txt | 8 +++---- ...wPreset.Contents-WindowInterface-swift.txt | 2 +- ...tRenderNode.Builder-AppKit-mockCount-0.txt | 8 +++---- ...tRenderNode.Builder-AppKit-mockCount-1.txt | 12 ++++------ ...tRenderNode.Builder-AppKit-mockCount-2.txt | 12 ++++------ ...Node.Builder-AppKitSwiftUI-mockCount-0.txt | 8 +++---- ...Node.Builder-AppKitSwiftUI-mockCount-1.txt | 12 ++++------ ...Node.Builder-AppKitSwiftUI-mockCount-2.txt | 12 ++++------ ...tRenderNode.Builder-Custom-mockCount-0.txt | 8 +++---- ...tRenderNode.Builder-Custom-mockCount-1.txt | 12 ++++------ ...tRenderNode.Builder-Custom-mockCount-2.txt | 12 ++++------ ...stRenderNode.Builder-UIKit-mockCount-0.txt | 8 +++---- ...stRenderNode.Builder-UIKit-mockCount-1.txt | 12 ++++------ ...stRenderNode.Builder-UIKit-mockCount-2.txt | 12 ++++------ ...rNode.Builder-UIKitSwiftUI-mockCount-0.txt | 8 +++---- ...rNode.Builder-UIKitSwiftUI-mockCount-1.txt | 12 ++++------ ...rNode.Builder-UIKitSwiftUI-mockCount-2.txt | 12 ++++------ ...enderNode.Interface-AppKit-mockCount-0.txt | 2 +- ...enderNode.Interface-AppKit-mockCount-1.txt | 2 +- ...enderNode.Interface-AppKit-mockCount-2.txt | 2 +- ...de.Interface-AppKitSwiftUI-mockCount-0.txt | 2 +- ...de.Interface-AppKitSwiftUI-mockCount-1.txt | 2 +- ...de.Interface-AppKitSwiftUI-mockCount-2.txt | 2 +- ...enderNode.Interface-Custom-mockCount-0.txt | 2 +- ...enderNode.Interface-Custom-mockCount-1.txt | 2 +- ...enderNode.Interface-Custom-mockCount-2.txt | 2 +- ...RenderNode.Interface-UIKit-mockCount-0.txt | 2 +- ...RenderNode.Interface-UIKit-mockCount-1.txt | 2 +- ...RenderNode.Interface-UIKit-mockCount-2.txt | 2 +- ...ode.Interface-UIKitSwiftUI-mockCount-0.txt | 2 +- ...ode.Interface-UIKitSwiftUI-mockCount-1.txt | 2 +- ...ode.Interface-UIKitSwiftUI-mockCount-2.txt | 2 +- ...odePresetApp.Builder-UIKit-mockCount-0.txt | 8 +++---- ...odePresetApp.Builder-UIKit-mockCount-1.txt | 8 +++---- ...odePresetApp.Builder-UIKit-mockCount-2.txt | 8 +++---- ...erNodePresetApp.Flow-UIKit-mockCount-0.txt | 8 +++---- ...erNodePresetApp.Flow-UIKit-mockCount-1.txt | 8 +++---- ...erNodePresetApp.Flow-UIKit-mockCount-2.txt | 8 +++---- ...ePresetApp.Interface-UIKit-mockCount-0.txt | 2 +- ...ePresetApp.Interface-UIKit-mockCount-1.txt | 2 +- ...ePresetApp.Interface-UIKit-mockCount-2.txt | 2 +- ...dePresetRoot.Builder-UIKit-mockCount-0.txt | 8 +++---- ...dePresetRoot.Builder-UIKit-mockCount-1.txt | 8 +++---- ...dePresetRoot.Builder-UIKit-mockCount-2.txt | 8 +++---- ...PresetRoot.Interface-UIKit-mockCount-0.txt | 2 +- ...PresetRoot.Interface-UIKit-mockCount-1.txt | 2 +- ...PresetRoot.Interface-UIKit-mockCount-2.txt | 2 +- ...ePresetScene.Builder-UIKit-mockCount-0.txt | 8 +++---- ...ePresetScene.Builder-UIKit-mockCount-1.txt | 8 +++---- ...ePresetScene.Builder-UIKit-mockCount-2.txt | 8 +++---- ...NodePresetScene.Flow-UIKit-mockCount-0.txt | 8 +++---- ...NodePresetScene.Flow-UIKit-mockCount-1.txt | 8 +++---- ...NodePresetScene.Flow-UIKit-mockCount-2.txt | 8 +++---- ...resetScene.Interface-UIKit-mockCount-0.txt | 2 +- ...resetScene.Interface-UIKit-mockCount-1.txt | 2 +- ...resetScene.Interface-UIKit-mockCount-2.txt | 2 +- ...PresetWindow.Builder-UIKit-mockCount-0.txt | 8 +++---- ...PresetWindow.Builder-UIKit-mockCount-1.txt | 8 +++---- ...PresetWindow.Builder-UIKit-mockCount-2.txt | 8 +++---- ...odePresetWindow.Flow-UIKit-mockCount-0.txt | 8 +++---- ...odePresetWindow.Flow-UIKit-mockCount-1.txt | 8 +++---- ...odePresetWindow.Flow-UIKit-mockCount-2.txt | 8 +++---- ...esetWindow.Interface-UIKit-mockCount-0.txt | 2 +- ...esetWindow.Interface-UIKit-mockCount-1.txt | 2 +- ...esetWindow.Interface-UIKit-mockCount-2.txt | 2 +- ...erNodeViewInjected.Builder-mockCount-0.txt | 8 +++---- ...erNodeViewInjected.Builder-mockCount-1.txt | 8 +++---- ...erNodeViewInjected.Builder-mockCount-2.txt | 8 +++---- ...eViewInjected.BuilderTests-mockCount-0.txt | 5 ++-- ...eViewInjected.BuilderTests-mockCount-1.txt | 5 ++-- ...eViewInjected.BuilderTests-mockCount-2.txt | 5 ++-- ...NodeViewInjected.Interface-mockCount-0.txt | 2 +- ...NodeViewInjected.Interface-mockCount-1.txt | 2 +- ...NodeViewInjected.Interface-mockCount-2.txt | 2 +- ..._withPlugin.Builder-AppKit-mockCount-0.txt | 8 +++---- ..._withPlugin.Builder-AppKit-mockCount-1.txt | 12 ++++------ ..._withPlugin.Builder-AppKit-mockCount-2.txt | 12 ++++------ ...ugin.Builder-AppKitSwiftUI-mockCount-0.txt | 8 +++---- ...ugin.Builder-AppKitSwiftUI-mockCount-1.txt | 12 ++++------ ...ugin.Builder-AppKitSwiftUI-mockCount-2.txt | 12 ++++------ ..._withPlugin.Builder-Custom-mockCount-0.txt | 8 +++---- ..._withPlugin.Builder-Custom-mockCount-1.txt | 12 ++++------ ..._withPlugin.Builder-Custom-mockCount-2.txt | 12 ++++------ ...e_withPlugin.Builder-UIKit-mockCount-0.txt | 8 +++---- ...e_withPlugin.Builder-UIKit-mockCount-1.txt | 12 ++++------ ...e_withPlugin.Builder-UIKit-mockCount-2.txt | 12 ++++------ ...lugin.Builder-UIKitSwiftUI-mockCount-0.txt | 8 +++---- ...lugin.Builder-UIKitSwiftUI-mockCount-1.txt | 12 ++++------ ...lugin.Builder-UIKitSwiftUI-mockCount-2.txt | 12 ++++------ ...ithPlugin.Interface-AppKit-mockCount-0.txt | 2 +- ...ithPlugin.Interface-AppKit-mockCount-1.txt | 2 +- ...ithPlugin.Interface-AppKit-mockCount-2.txt | 2 +- ...in.Interface-AppKitSwiftUI-mockCount-0.txt | 2 +- ...in.Interface-AppKitSwiftUI-mockCount-1.txt | 2 +- ...in.Interface-AppKitSwiftUI-mockCount-2.txt | 2 +- ...ithPlugin.Interface-Custom-mockCount-0.txt | 2 +- ...ithPlugin.Interface-Custom-mockCount-1.txt | 2 +- ...ithPlugin.Interface-Custom-mockCount-2.txt | 2 +- ...withPlugin.Interface-UIKit-mockCount-0.txt | 2 +- ...withPlugin.Interface-UIKit-mockCount-1.txt | 2 +- ...withPlugin.Interface-UIKit-mockCount-2.txt | 2 +- ...gin.Interface-UIKitSwiftUI-mockCount-0.txt | 2 +- ...gin.Interface-UIKitSwiftUI-mockCount-1.txt | 2 +- ...gin.Interface-UIKitSwiftUI-mockCount-2.txt | 2 +- ...e_withPlugin.Plugin-AppKit-mockCount-0.txt | 4 +--- ...e_withPlugin.Plugin-AppKit-mockCount-1.txt | 4 +--- ...e_withPlugin.Plugin-AppKit-mockCount-2.txt | 4 +--- ...lugin.Plugin-AppKitSwiftUI-mockCount-0.txt | 4 +--- ...lugin.Plugin-AppKitSwiftUI-mockCount-1.txt | 4 +--- ...lugin.Plugin-AppKitSwiftUI-mockCount-2.txt | 4 +--- ...e_withPlugin.Plugin-Custom-mockCount-0.txt | 4 +--- ...e_withPlugin.Plugin-Custom-mockCount-1.txt | 4 +--- ...e_withPlugin.Plugin-Custom-mockCount-2.txt | 4 +--- ...de_withPlugin.Plugin-UIKit-mockCount-0.txt | 4 +--- ...de_withPlugin.Plugin-UIKit-mockCount-1.txt | 4 +--- ...de_withPlugin.Plugin-UIKit-mockCount-2.txt | 4 +--- ...Plugin.Plugin-UIKitSwiftUI-mockCount-0.txt | 4 +--- ...Plugin.Plugin-UIKitSwiftUI-mockCount-1.txt | 4 +--- ...Plugin.Plugin-UIKitSwiftUI-mockCount-2.txt | 4 +--- ...ginAndTests.Builder-AppKit-mockCount-0.txt | 8 +++---- ...ginAndTests.Builder-AppKit-mockCount-1.txt | 12 ++++------ ...ginAndTests.Builder-AppKit-mockCount-2.txt | 12 ++++------ ...ests.Builder-AppKitSwiftUI-mockCount-0.txt | 8 +++---- ...ests.Builder-AppKitSwiftUI-mockCount-1.txt | 12 ++++------ ...ests.Builder-AppKitSwiftUI-mockCount-2.txt | 12 ++++------ ...ginAndTests.Builder-Custom-mockCount-0.txt | 8 +++---- ...ginAndTests.Builder-Custom-mockCount-1.txt | 12 ++++------ ...ginAndTests.Builder-Custom-mockCount-2.txt | 12 ++++------ ...uginAndTests.Builder-UIKit-mockCount-0.txt | 8 +++---- ...uginAndTests.Builder-UIKit-mockCount-1.txt | 12 ++++------ ...uginAndTests.Builder-UIKit-mockCount-2.txt | 12 ++++------ ...Tests.Builder-UIKitSwiftUI-mockCount-0.txt | 8 +++---- ...Tests.Builder-UIKitSwiftUI-mockCount-1.txt | 12 ++++------ ...Tests.Builder-UIKitSwiftUI-mockCount-2.txt | 12 ++++------ ...dTests.BuilderTests-AppKit-mockCount-0.txt | 5 ++-- ...dTests.BuilderTests-AppKit-mockCount-1.txt | 5 ++-- ...dTests.BuilderTests-AppKit-mockCount-2.txt | 5 ++-- ...BuilderTests-AppKitSwiftUI-mockCount-0.txt | 5 ++-- ...BuilderTests-AppKitSwiftUI-mockCount-1.txt | 5 ++-- ...BuilderTests-AppKitSwiftUI-mockCount-2.txt | 5 ++-- ...dTests.BuilderTests-Custom-mockCount-0.txt | 5 ++-- ...dTests.BuilderTests-Custom-mockCount-1.txt | 5 ++-- ...dTests.BuilderTests-Custom-mockCount-2.txt | 5 ++-- ...ndTests.BuilderTests-UIKit-mockCount-0.txt | 5 ++-- ...ndTests.BuilderTests-UIKit-mockCount-1.txt | 5 ++-- ...ndTests.BuilderTests-UIKit-mockCount-2.txt | 5 ++-- ....BuilderTests-UIKitSwiftUI-mockCount-0.txt | 5 ++-- ....BuilderTests-UIKitSwiftUI-mockCount-1.txt | 5 ++-- ....BuilderTests-UIKitSwiftUI-mockCount-2.txt | 5 ++-- ...nAndTests.Interface-AppKit-mockCount-0.txt | 2 +- ...nAndTests.Interface-AppKit-mockCount-1.txt | 2 +- ...nAndTests.Interface-AppKit-mockCount-2.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-0.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-1.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-2.txt | 2 +- ...nAndTests.Interface-Custom-mockCount-0.txt | 2 +- ...nAndTests.Interface-Custom-mockCount-1.txt | 2 +- ...nAndTests.Interface-Custom-mockCount-2.txt | 2 +- ...inAndTests.Interface-UIKit-mockCount-0.txt | 2 +- ...inAndTests.Interface-UIKit-mockCount-1.txt | 2 +- ...inAndTests.Interface-UIKit-mockCount-2.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-0.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-1.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-2.txt | 2 +- ...uginAndTests.Plugin-AppKit-mockCount-0.txt | 4 +--- ...uginAndTests.Plugin-AppKit-mockCount-1.txt | 4 +--- ...uginAndTests.Plugin-AppKit-mockCount-2.txt | 4 +--- ...Tests.Plugin-AppKitSwiftUI-mockCount-0.txt | 4 +--- ...Tests.Plugin-AppKitSwiftUI-mockCount-1.txt | 4 +--- ...Tests.Plugin-AppKitSwiftUI-mockCount-2.txt | 4 +--- ...uginAndTests.Plugin-Custom-mockCount-0.txt | 4 +--- ...uginAndTests.Plugin-Custom-mockCount-1.txt | 4 +--- ...uginAndTests.Plugin-Custom-mockCount-2.txt | 4 +--- ...luginAndTests.Plugin-UIKit-mockCount-0.txt | 4 +--- ...luginAndTests.Plugin-UIKit-mockCount-1.txt | 4 +--- ...luginAndTests.Plugin-UIKit-mockCount-2.txt | 4 +--- ...dTests.Plugin-UIKitSwiftUI-mockCount-0.txt | 4 +--- ...dTests.Plugin-UIKitSwiftUI-mockCount-1.txt | 4 +--- ...dTests.Plugin-UIKitSwiftUI-mockCount-2.txt | 4 +--- ...ndTests.PluginTests-AppKit-mockCount-0.txt | 10 ++++---- ...ndTests.PluginTests-AppKit-mockCount-1.txt | 10 ++++---- ...ndTests.PluginTests-AppKit-mockCount-2.txt | 10 ++++---- ....PluginTests-AppKitSwiftUI-mockCount-0.txt | 10 ++++---- ....PluginTests-AppKitSwiftUI-mockCount-1.txt | 10 ++++---- ....PluginTests-AppKitSwiftUI-mockCount-2.txt | 10 ++++---- ...ndTests.PluginTests-Custom-mockCount-0.txt | 10 ++++---- ...ndTests.PluginTests-Custom-mockCount-1.txt | 10 ++++---- ...ndTests.PluginTests-Custom-mockCount-2.txt | 10 ++++---- ...AndTests.PluginTests-UIKit-mockCount-0.txt | 10 ++++---- ...AndTests.PluginTests-UIKit-mockCount-1.txt | 10 ++++---- ...AndTests.PluginTests-UIKit-mockCount-2.txt | 10 ++++---- ...s.PluginTests-UIKitSwiftUI-mockCount-0.txt | 10 ++++---- ...s.PluginTests-UIKitSwiftUI-mockCount-1.txt | 10 ++++---- ...s.PluginTests-UIKitSwiftUI-mockCount-2.txt | 10 ++++---- ...e_withTests.Builder-AppKit-mockCount-0.txt | 8 +++---- ...e_withTests.Builder-AppKit-mockCount-1.txt | 12 ++++------ ...e_withTests.Builder-AppKit-mockCount-2.txt | 12 ++++------ ...ests.Builder-AppKitSwiftUI-mockCount-0.txt | 8 +++---- ...ests.Builder-AppKitSwiftUI-mockCount-1.txt | 12 ++++------ ...ests.Builder-AppKitSwiftUI-mockCount-2.txt | 12 ++++------ ...e_withTests.Builder-Custom-mockCount-0.txt | 8 +++---- ...e_withTests.Builder-Custom-mockCount-1.txt | 12 ++++------ ...e_withTests.Builder-Custom-mockCount-2.txt | 12 ++++------ ...de_withTests.Builder-UIKit-mockCount-0.txt | 8 +++---- ...de_withTests.Builder-UIKit-mockCount-1.txt | 12 ++++------ ...de_withTests.Builder-UIKit-mockCount-2.txt | 12 ++++------ ...Tests.Builder-UIKitSwiftUI-mockCount-0.txt | 8 +++---- ...Tests.Builder-UIKitSwiftUI-mockCount-1.txt | 12 ++++------ ...Tests.Builder-UIKitSwiftUI-mockCount-2.txt | 12 ++++------ ...hTests.BuilderTests-AppKit-mockCount-0.txt | 5 ++-- ...hTests.BuilderTests-AppKit-mockCount-1.txt | 5 ++-- ...hTests.BuilderTests-AppKit-mockCount-2.txt | 5 ++-- ...BuilderTests-AppKitSwiftUI-mockCount-0.txt | 5 ++-- ...BuilderTests-AppKitSwiftUI-mockCount-1.txt | 5 ++-- ...BuilderTests-AppKitSwiftUI-mockCount-2.txt | 5 ++-- ...hTests.BuilderTests-Custom-mockCount-0.txt | 5 ++-- ...hTests.BuilderTests-Custom-mockCount-1.txt | 5 ++-- ...hTests.BuilderTests-Custom-mockCount-2.txt | 5 ++-- ...thTests.BuilderTests-UIKit-mockCount-0.txt | 5 ++-- ...thTests.BuilderTests-UIKit-mockCount-1.txt | 5 ++-- ...thTests.BuilderTests-UIKit-mockCount-2.txt | 5 ++-- ....BuilderTests-UIKitSwiftUI-mockCount-0.txt | 5 ++-- ....BuilderTests-UIKitSwiftUI-mockCount-1.txt | 5 ++-- ....BuilderTests-UIKitSwiftUI-mockCount-2.txt | 5 ++-- ...withTests.Interface-AppKit-mockCount-0.txt | 2 +- ...withTests.Interface-AppKit-mockCount-1.txt | 2 +- ...withTests.Interface-AppKit-mockCount-2.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-0.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-1.txt | 2 +- ...ts.Interface-AppKitSwiftUI-mockCount-2.txt | 2 +- ...withTests.Interface-Custom-mockCount-0.txt | 2 +- ...withTests.Interface-Custom-mockCount-1.txt | 2 +- ...withTests.Interface-Custom-mockCount-2.txt | 2 +- ..._withTests.Interface-UIKit-mockCount-0.txt | 2 +- ..._withTests.Interface-UIKit-mockCount-1.txt | 2 +- ..._withTests.Interface-UIKit-mockCount-2.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-0.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-1.txt | 2 +- ...sts.Interface-UIKitSwiftUI-mockCount-2.txt | 2 +- .../testRenderPlugin.Plugin-mockCount-0.txt | 4 +--- .../testRenderPlugin.Plugin-mockCount-1.txt | 4 +--- .../testRenderPlugin.Plugin-mockCount-2.txt | 4 +--- ...derPlugin_withTests.Plugin-mockCount-0.txt | 4 +--- ...derPlugin_withTests.Plugin-mockCount-1.txt | 4 +--- ...derPlugin_withTests.Plugin-mockCount-2.txt | 4 +--- ...ugin_withTests.PluginTests-mockCount-0.txt | 10 ++++---- ...ugin_withTests.PluginTests-mockCount-1.txt | 10 ++++---- ...ugin_withTests.PluginTests-mockCount-2.txt | 10 ++++---- ...WithIdentifier.Contents-AppKit-Builder.txt | 8 +++---- ...dentifier.Contents-AppKit-BuilderTests.txt | 5 ++-- ...thIdentifier.Contents-AppKit-Interface.txt | 2 +- ...eWithIdentifier.Contents-AppKit-Plugin.txt | 4 +--- ...Identifier.Contents-AppKit-PluginTests.txt | 10 ++++---- ...nts-AppKitCreatedForPluginList-Builder.txt | 12 ++++------ ...ppKitCreatedForPluginList-BuilderTests.txt | 5 ++-- ...s-AppKitCreatedForPluginList-Interface.txt | 2 +- ...ents-AppKitCreatedForPluginList-Plugin.txt | 4 +--- ...AppKitCreatedForPluginList-PluginTests.txt | 10 ++++---- ...ntifier.Contents-AppKitSwiftUI-Builder.txt | 8 +++---- ...er.Contents-AppKitSwiftUI-BuilderTests.txt | 5 ++-- ...ifier.Contents-AppKitSwiftUI-Interface.txt | 2 +- ...entifier.Contents-AppKitSwiftUI-Plugin.txt | 4 +--- ...ier.Contents-AppKitSwiftUI-PluginTests.txt | 10 ++++---- ...KitSwiftUICreatedForPluginList-Builder.txt | 12 ++++------ ...iftUICreatedForPluginList-BuilderTests.txt | 5 ++-- ...tSwiftUICreatedForPluginList-Interface.txt | 2 +- ...pKitSwiftUICreatedForPluginList-Plugin.txt | 4 +--- ...wiftUICreatedForPluginList-PluginTests.txt | 10 ++++---- ...WithIdentifier.Contents-Custom-Builder.txt | 8 +++---- ...dentifier.Contents-Custom-BuilderTests.txt | 5 ++-- ...thIdentifier.Contents-Custom-Interface.txt | 2 +- ...eWithIdentifier.Contents-Custom-Plugin.txt | 4 +--- ...Identifier.Contents-Custom-PluginTests.txt | 10 ++++---- ...nts-CustomCreatedForPluginList-Builder.txt | 12 ++++------ ...ustomCreatedForPluginList-BuilderTests.txt | 5 ++-- ...s-CustomCreatedForPluginList-Interface.txt | 2 +- ...ents-CustomCreatedForPluginList-Plugin.txt | 4 +--- ...CustomCreatedForPluginList-PluginTests.txt | 10 ++++---- ...eWithIdentifier.Contents-Plugin-Plugin.txt | 4 +--- ...Identifier.Contents-Plugin-PluginTests.txt | 10 ++++---- ...eWithIdentifier.Contents-UIKit-Builder.txt | 8 +++---- ...Identifier.Contents-UIKit-BuilderTests.txt | 5 ++-- ...ithIdentifier.Contents-UIKit-Interface.txt | 2 +- ...teWithIdentifier.Contents-UIKit-Plugin.txt | 4 +--- ...hIdentifier.Contents-UIKit-PluginTests.txt | 10 ++++---- ...ents-UIKitCreatedForPluginList-Builder.txt | 12 ++++------ ...UIKitCreatedForPluginList-BuilderTests.txt | 5 ++-- ...ts-UIKitCreatedForPluginList-Interface.txt | 2 +- ...tents-UIKitCreatedForPluginList-Plugin.txt | 4 +--- ...-UIKitCreatedForPluginList-PluginTests.txt | 10 ++++---- ...entifier.Contents-UIKitSwiftUI-Builder.txt | 8 +++---- ...ier.Contents-UIKitSwiftUI-BuilderTests.txt | 5 ++-- ...tifier.Contents-UIKitSwiftUI-Interface.txt | 2 +- ...dentifier.Contents-UIKitSwiftUI-Plugin.txt | 4 +--- ...fier.Contents-UIKitSwiftUI-PluginTests.txt | 10 ++++---- ...KitSwiftUICreatedForPluginList-Builder.txt | 12 ++++------ ...iftUICreatedForPluginList-BuilderTests.txt | 5 ++-- ...tSwiftUICreatedForPluginList-Interface.txt | 2 +- ...IKitSwiftUICreatedForPluginList-Plugin.txt | 4 +--- ...wiftUICreatedForPluginList-PluginTests.txt | 10 ++++---- ...entifier.Contents-ViewInjected-Builder.txt | 8 +++---- ...ier.Contents-ViewInjected-BuilderTests.txt | 5 ++-- ...tifier.Contents-ViewInjected-Interface.txt | 2 +- ...dentifier.Contents-ViewInjected-Plugin.txt | 4 +--- ...fier.Contents-ViewInjected-PluginTests.txt | 10 ++++---- ...enerateWithURL.Contents-AppKit-Builder.txt | 8 +++---- ...teWithURL.Contents-AppKit-BuilderTests.txt | 5 ++-- ...erateWithURL.Contents-AppKit-Interface.txt | 2 +- ...GenerateWithURL.Contents-AppKit-Plugin.txt | 4 +--- ...ateWithURL.Contents-AppKit-PluginTests.txt | 10 ++++---- ...nts-AppKitCreatedForPluginList-Builder.txt | 12 ++++------ ...ppKitCreatedForPluginList-BuilderTests.txt | 5 ++-- ...s-AppKitCreatedForPluginList-Interface.txt | 2 +- ...ents-AppKitCreatedForPluginList-Plugin.txt | 4 +--- ...AppKitCreatedForPluginList-PluginTests.txt | 10 ++++---- ...WithURL.Contents-AppKitSwiftUI-Builder.txt | 8 +++---- ...RL.Contents-AppKitSwiftUI-BuilderTests.txt | 5 ++-- ...thURL.Contents-AppKitSwiftUI-Interface.txt | 2 +- ...eWithURL.Contents-AppKitSwiftUI-Plugin.txt | 4 +--- ...URL.Contents-AppKitSwiftUI-PluginTests.txt | 10 ++++---- ...KitSwiftUICreatedForPluginList-Builder.txt | 12 ++++------ ...iftUICreatedForPluginList-BuilderTests.txt | 5 ++-- ...tSwiftUICreatedForPluginList-Interface.txt | 2 +- ...pKitSwiftUICreatedForPluginList-Plugin.txt | 4 +--- ...wiftUICreatedForPluginList-PluginTests.txt | 10 ++++---- ...enerateWithURL.Contents-Custom-Builder.txt | 8 +++---- ...teWithURL.Contents-Custom-BuilderTests.txt | 5 ++-- ...erateWithURL.Contents-Custom-Interface.txt | 2 +- ...GenerateWithURL.Contents-Custom-Plugin.txt | 4 +--- ...ateWithURL.Contents-Custom-PluginTests.txt | 10 ++++---- ...nts-CustomCreatedForPluginList-Builder.txt | 12 ++++------ ...ustomCreatedForPluginList-BuilderTests.txt | 5 ++-- ...s-CustomCreatedForPluginList-Interface.txt | 2 +- ...ents-CustomCreatedForPluginList-Plugin.txt | 4 +--- ...CustomCreatedForPluginList-PluginTests.txt | 10 ++++---- ...GenerateWithURL.Contents-Plugin-Plugin.txt | 4 +--- ...ateWithURL.Contents-Plugin-PluginTests.txt | 10 ++++---- ...GenerateWithURL.Contents-UIKit-Builder.txt | 8 +++---- ...ateWithURL.Contents-UIKit-BuilderTests.txt | 5 ++-- ...nerateWithURL.Contents-UIKit-Interface.txt | 2 +- ...tGenerateWithURL.Contents-UIKit-Plugin.txt | 4 +--- ...rateWithURL.Contents-UIKit-PluginTests.txt | 10 ++++---- ...ents-UIKitCreatedForPluginList-Builder.txt | 12 ++++------ ...UIKitCreatedForPluginList-BuilderTests.txt | 5 ++-- ...ts-UIKitCreatedForPluginList-Interface.txt | 2 +- ...tents-UIKitCreatedForPluginList-Plugin.txt | 4 +--- ...-UIKitCreatedForPluginList-PluginTests.txt | 10 ++++---- ...eWithURL.Contents-UIKitSwiftUI-Builder.txt | 8 +++---- ...URL.Contents-UIKitSwiftUI-BuilderTests.txt | 5 ++-- ...ithURL.Contents-UIKitSwiftUI-Interface.txt | 2 +- ...teWithURL.Contents-UIKitSwiftUI-Plugin.txt | 4 +--- ...hURL.Contents-UIKitSwiftUI-PluginTests.txt | 10 ++++---- ...KitSwiftUICreatedForPluginList-Builder.txt | 12 ++++------ ...iftUICreatedForPluginList-BuilderTests.txt | 5 ++-- ...tSwiftUICreatedForPluginList-Interface.txt | 2 +- ...IKitSwiftUICreatedForPluginList-Plugin.txt | 4 +--- ...wiftUICreatedForPluginList-PluginTests.txt | 10 ++++---- ...eWithURL.Contents-ViewInjected-Builder.txt | 8 +++---- ...URL.Contents-ViewInjected-BuilderTests.txt | 5 ++-- ...ithURL.Contents-ViewInjected-Interface.txt | 2 +- ...teWithURL.Contents-ViewInjected-Plugin.txt | 4 +--- ...hURL.Contents-ViewInjected-PluginTests.txt | 10 ++++---- genesis.yml | 18 ++++---------- 381 files changed, 920 insertions(+), 1429 deletions(-) diff --git a/.github/workflows/genesis.yml b/.github/workflows/genesis.yml index 41a60d178..27e7f647f 100644 --- a/.github/workflows/genesis.yml +++ b/.github/workflows/genesis.yml @@ -20,7 +20,9 @@ jobs: steps: - name: Install dependencies run: | - brew install mint xcodegen needle mockolo + brew install mint xcodegen needle + mint install uber/mockolo@2.5.0 + sudo ln -sf ~/.mint/bin/mockolo /usr/local/bin/mockolo mint install yonaskolb/genesis - name: Checkout source uses: actions/checkout@v6 diff --git a/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil b/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil index 496d0ee69..20796461a 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil @@ -106,8 +106,8 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: {{ plugin_list_name }}Listener - ) async -> {{ plugin_list_name }}Flow { - await build(withListener: listener as {{ node_name }}Listener) + ) -> {{ plugin_list_name }}Flow { + build(withListener: listener as {{ node_name }}Listener) } {% endif %} @@ -115,18 +115,17 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: {{ node_name }}Listener - ) async -> {{ node_name }}Flow { + ) -> {{ node_name }}Flow { let dynamicBuildDependency: {{ node_name }}DynamicBuildDependency = listener let dynamicComponentDependency: {{ node_name }}DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: {{ node_name }}Component, dynamicBuildDependency: {{ node_name }}DynamicBuildDependency - ) async -> {{ node_name }}Flow { + ) -> {{ node_name }}Flow { let listener: {{ node_name }}Listener = dynamicBuildDependency let store: {{ store_prefix }}Store< {{ node_name }}State, @@ -170,7 +169,6 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension {{ node_name }}BuilderImp: {{ node_name }}Builder {} diff --git a/Sources/NodesGenerator/Resources/Stencils/Builder.stencil b/Sources/NodesGenerator/Resources/Stencils/Builder.stencil index e78af8908..cae2ec289 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Builder.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Builder.stencil @@ -142,20 +142,20 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: {{ plugin_list_name }}Listener - ) async -> {{ plugin_list_name }}Flow { - await build(withListener: listener as {{ node_name }}Listener) + ) -> {{ plugin_list_name }}Flow { + build(withListener: listener as {{ node_name }}Listener) } {% endif %} /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. {% if node_name == "App" %} - internal func build() async -> {{ node_name }}Flow { + internal func build() -> {{ node_name }}Flow { {% else %} internal func build( withListener listener: {{ node_name }}Listener{% if not owns_view %}{{ ',' }} viewController: {{ node_name }}ViewControllable{% endif +%} - ) async -> {{ node_name }}Flow { + ) -> {{ node_name }}Flow { {% endif %} {% if owns_view %} let dynamicBuildDependency: {{ node_name }}DynamicBuildDependency = listener @@ -165,15 +165,14 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder let dynamicBuildDependency: {{ node_name }}DynamicBuildDependency = (listener, viewController) {% endif %} let dynamicComponentDependency: {{ node_name }}DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: {{ node_name }}Component, dynamicBuildDependency: {{ node_name }}DynamicBuildDependency - ) async -> {{ node_name }}Flow { + ) -> {{ node_name }}Flow { {% if owns_view %} let listener: {{ node_name }}Listener = dynamicBuildDependency {% elif node_name != "App" %} @@ -232,7 +231,6 @@ internal final class {{ node_name }}BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension {{ node_name }}BuilderImp: {{ node_name }}Builder {} diff --git a/Sources/NodesGenerator/Resources/Stencils/BuilderTests.stencil b/Sources/NodesGenerator/Resources/Stencils/BuilderTests.stencil index bce98400b..bbf272216 100644 --- a/Sources/NodesGenerator/Resources/Stencils/BuilderTests.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/BuilderTests.stencil @@ -51,13 +51,11 @@ final class {{ node_name }}BuilderTests: XCTestCase { } @MainActor - func testCreate() async { + func testCreate() { {% if is_nimble_enabled %} - let result = await builder.build(withListener: listenerMock{% if not owns_view %}, viewController: viewControllableMock{% endif %}) - expect(result) != nil + expect { [self] in builder.build(withListener: listenerMock{% if not owns_view %}, viewController: viewControllableMock{% endif %}) } != nil {% else %} - let result = await builder.build(withListener: listenerMock{% if not owns_view %}, viewController: viewControllableMock{% endif %}) - XCTAssertNotNil(result) + XCTAssertNotNil(builder.build(withListener: listenerMock{% if not owns_view %}, viewController: viewControllableMock{% endif %})) {% endif %} } } diff --git a/Sources/NodesGenerator/Resources/Stencils/Flow.stencil b/Sources/NodesGenerator/Resources/Stencils/Flow.stencil index 9cd1b7cd4..25ed5d43b 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Flow.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Flow.stencil @@ -118,20 +118,16 @@ internal final class {{ node_name }}FlowImp: AbstractFlow {% if node_name == "WindowScene" %} private func attachWindow() { - Task { - let flow: WindowFlow = await windowBuilder.build(withListener: context, - viewController: viewController.makeWindow()) - attach(starting: flow) - } + let flow: WindowFlow = windowBuilder.build(withListener: context, + viewController: viewController.makeWindow()) + attach(starting: flow) } {% elif node_name == "Window" %} private func attachRoot() { - Task { - let flow: RootFlow = await rootBuilder.build(withListener: context) - viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) - attach(starting: flow) - } + let flow: RootFlow = rootBuilder.build(withListener: context) + viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) + attach(starting: flow) } {% endif %} } @@ -142,11 +138,9 @@ extension {{ node_name }}FlowImp: {{ node_name }}Flow {} extension {{ node_name }}FlowImp: {{ node_name }}FlowInterface { internal func attachWindowScene(_ viewController: WindowSceneViewControllable) { - Task { - let flow: WindowSceneFlow = await windowSceneBuilder.build(withListener: context, - viewController: viewController) - attach(starting: flow) - } + let flow: WindowSceneFlow = windowSceneBuilder.build(withListener: context, + viewController: viewController) + attach(starting: flow) } internal func detachWindowScene(_ viewController: WindowSceneViewControllable) { diff --git a/Sources/NodesGenerator/Resources/Stencils/Interface-SwiftUI.stencil b/Sources/NodesGenerator/Resources/Stencils/Interface-SwiftUI.stencil index aee6b325a..a72c080b0 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Interface-SwiftUI.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Interface-SwiftUI.stencil @@ -37,5 +37,5 @@ internal protocol {{ node_name }}Builder: AnyObject { {% endif %} func build( withListener listener: {{ node_name }}Listener - ) async -> {{ node_name }}Flow + ) -> {{ node_name }}Flow } diff --git a/Sources/NodesGenerator/Resources/Stencils/Interface.stencil b/Sources/NodesGenerator/Resources/Stencils/Interface.stencil index 5d414b318..9ed627405 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Interface.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Interface.stencil @@ -53,17 +53,17 @@ internal protocol {{ node_name }}Flow: Flow {} internal protocol {{ node_name }}Builder: {{ plugin_list_name }}Builder { func build( withListener listener: {{ node_name }}Listener - ) async -> {{ node_name }}Flow + ) -> {{ node_name }}Flow } {% else %} internal protocol {{ node_name }}Builder: AnyObject { {% if node_name == "App" %} - func build() async -> {{ node_name }}Flow + func build() -> {{ node_name }}Flow {% else %} func build( withListener listener: {{ node_name }}Listener{% if not owns_view %}{{ ',' }} viewController: {{ node_name }}ViewControllable{% endif +%} - ) async -> {{ node_name }}Flow + ) -> {{ node_name }}Flow {% endif %} } {% endif %} diff --git a/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil b/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil index 1a0cbe3a7..260abc098 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil @@ -76,14 +76,12 @@ internal final class {{ plugin_name }}PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: {{ plugin_name }}PluginComponent - ) async -> {{ plugin_name }}Builder { + ) -> {{ plugin_name }}Builder { {{ plugin_name }}BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension {{ plugin_name }}PluginImp: {{ plugin_name }}Plugin {} diff --git a/Sources/NodesGenerator/Resources/Stencils/PluginTests.stencil b/Sources/NodesGenerator/Resources/Stencils/PluginTests.stencil index fea000cb5..dd88b458a 100644 --- a/Sources/NodesGenerator/Resources/Stencils/PluginTests.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/PluginTests.stencil @@ -32,24 +32,20 @@ final class {{ plugin_name }}PluginTests: XCTestCase { } @MainActor - func testCreate() async { + func testCreate() { {% if is_nimble_enabled %} - let result = await plugin.create() - expect(result) != nil + expect { [self] in plugin.create() } != nil {% else %} - let result = await plugin.create() - XCTAssertNotNil(result) + XCTAssertNotNil(plugin.create()) {% endif %} } @MainActor - func testOverride() async { + func testOverride() { {% if is_nimble_enabled %} - let result = await plugin.override() - expect(result) != nil + expect { [self] in plugin.override() } != nil {% else %} - let result = await plugin.override() - XCTAssertNotNil(result) + XCTAssertNotNil(plugin.override()) {% endif %} } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt index 0dd9b2d73..80065f42b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt @@ -79,18 +79,17 @@ internal final class AppBuilderImp: AbstractBuilder /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. - internal func build() async -> AppFlow { + internal func build() -> AppFlow { let dynamicBuildDependency: AppDynamicBuildDependency = () let dynamicComponentDependency: AppDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency - ) async -> AppFlow { + ) -> AppFlow { let analytics: AppAnalyticsImp = .init() let context: AppContextImp = .init( workers: [], @@ -104,7 +103,6 @@ internal final class AppBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension AppBuilderImp: AppBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppFlow-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppFlow-swift.txt index fe03e84ba..b8592be90 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppFlow-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppFlow-swift.txt @@ -35,11 +35,9 @@ extension AppFlowImp: AppFlow {} extension AppFlowImp: AppFlowInterface { internal func attachWindowScene(_ viewController: WindowSceneViewControllable) { - Task { - let flow: WindowSceneFlow = await windowSceneBuilder.build(withListener: context, - viewController: viewController) - attach(starting: flow) - } + let flow: WindowSceneFlow = windowSceneBuilder.build(withListener: context, + viewController: viewController) + attach(starting: flow) } internal func detachWindowScene(_ viewController: WindowSceneViewControllable) { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppInterface-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppInterface-swift.txt index 267cf49b8..0b8152ee4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppInterface-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppInterface-swift.txt @@ -15,5 +15,5 @@ internal protocol AppFlow: Flow {} /// @mockable @MainActor internal protocol AppBuilder: AnyObject { - func build() async -> AppFlow + func build() -> AppFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt index 535851698..79c9242e2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt @@ -87,18 +87,17 @@ internal final class RootBuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: RootListener - ) async -> RootFlow { + ) -> RootFlow { let dynamicBuildDependency: RootDynamicBuildDependency = listener let dynamicComponentDependency: RootDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency - ) async -> RootFlow { + ) -> RootFlow { let listener: RootListener = dynamicBuildDependency let store: Store< RootState, @@ -126,7 +125,6 @@ internal final class RootBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension RootBuilderImp: RootBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootInterface-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootInterface-swift.txt index e8e57d084..90a2be9d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootInterface-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootInterface-swift.txt @@ -22,5 +22,5 @@ internal protocol RootFlow: ViewControllableFlow {} internal protocol RootBuilder: AnyObject { func build( withListener listener: RootListener - ) async -> RootFlow + ) -> RootFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt index 96c388e21..d2ec4ccc0 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt @@ -92,18 +92,17 @@ internal final class WindowSceneBuilderImp: AbstractBuilder internal func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) async -> WindowSceneFlow { + ) -> WindowSceneFlow { let dynamicBuildDependency: WindowSceneDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowSceneDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency - ) async -> WindowSceneFlow { + ) -> WindowSceneFlow { let listener: WindowSceneListener = dynamicBuildDependency.0 let viewController: WindowSceneViewControllable = dynamicBuildDependency.1 let analytics: WindowSceneAnalyticsImp = .init() @@ -120,7 +119,6 @@ internal final class WindowSceneBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension WindowSceneBuilderImp: WindowSceneBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneFlow-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneFlow-swift.txt index d0658d48d..e01de45cd 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneFlow-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneFlow-swift.txt @@ -38,11 +38,9 @@ internal final class WindowSceneFlowImp: AbstractFlow } private func attachWindow() { - Task { - let flow: WindowFlow = await windowBuilder.build(withListener: context, - viewController: viewController.makeWindow()) - attach(starting: flow) - } + let flow: WindowFlow = windowBuilder.build(withListener: context, + viewController: viewController.makeWindow()) + attach(starting: flow) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneInterface-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneInterface-swift.txt index 65bd749a0..3e40b78fb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneInterface-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneInterface-swift.txt @@ -25,5 +25,5 @@ internal protocol WindowSceneBuilder: AnyObject { func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) async -> WindowSceneFlow + ) -> WindowSceneFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt index aac68728a..eed766c6c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt @@ -92,18 +92,17 @@ internal final class WindowBuilderImp: AbstractBuilder internal func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) async -> WindowFlow { + ) -> WindowFlow { let dynamicBuildDependency: WindowDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency - ) async -> WindowFlow { + ) -> WindowFlow { let listener: WindowListener = dynamicBuildDependency.0 let viewController: WindowViewControllable = dynamicBuildDependency.1 let analytics: WindowAnalyticsImp = .init() @@ -120,7 +119,6 @@ internal final class WindowBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension WindowBuilderImp: WindowBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowFlow-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowFlow-swift.txt index 247f1b255..de4e8da54 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowFlow-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowFlow-swift.txt @@ -33,11 +33,9 @@ internal final class WindowFlowImp: AbstractFlow } private func attachRoot() { - Task { - let flow: RootFlow = await rootBuilder.build(withListener: context) - viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) - attach(starting: flow) - } + let flow: RootFlow = rootBuilder.build(withListener: context) + viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) + attach(starting: flow) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowInterface-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowInterface-swift.txt index 9efdc1cb9..dca5c1162 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowInterface-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowInterface-swift.txt @@ -23,5 +23,5 @@ internal protocol WindowBuilder: AnyObject { func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) async -> WindowFlow + ) -> WindowFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt index 1dd139fca..b7a6b5720 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt @@ -79,18 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt index 8a85c7fdc..fffa48109 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt @@ -85,26 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt index 92c2141c1..9aab31879 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt index 1dd139fca..b7a6b5720 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt @@ -79,18 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt index 8a85c7fdc..fffa48109 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt @@ -85,26 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt index 92c2141c1..9aab31879 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-AppKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-Custom-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Interface-UIKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt index 232f04514..922cea90f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt @@ -73,18 +73,17 @@ internal final class AppBuilderImp: AbstractBuilder /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. - internal func build() async -> AppFlow { + internal func build() -> AppFlow { let dynamicBuildDependency: AppDynamicBuildDependency = () let dynamicComponentDependency: AppDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency - ) async -> AppFlow { + ) -> AppFlow { let analytics: AppAnalyticsImp = .init() let context: AppContextImp = .init( workers: [], @@ -98,7 +97,6 @@ internal final class AppBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension AppBuilderImp: AppBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt index cdae7aca6..c54621e0f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt @@ -78,18 +78,17 @@ internal final class AppBuilderImp: AbstractBuilder /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. - internal func build() async -> AppFlow { + internal func build() -> AppFlow { let dynamicBuildDependency: AppDynamicBuildDependency = () let dynamicComponentDependency: AppDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency - ) async -> AppFlow { + ) -> AppFlow { let analytics: AppAnalyticsImp = .init( : component. ) @@ -106,7 +105,6 @@ internal final class AppBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension AppBuilderImp: AppBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt index da043e558..3340348da 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt @@ -79,18 +79,17 @@ internal final class AppBuilderImp: AbstractBuilder /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. - internal func build() async -> AppFlow { + internal func build() -> AppFlow { let dynamicBuildDependency: AppDynamicBuildDependency = () let dynamicComponentDependency: AppDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: AppComponent, dynamicBuildDependency: AppDynamicBuildDependency - ) async -> AppFlow { + ) -> AppFlow { let analytics: AppAnalyticsImp = .init( : component., : component. @@ -109,7 +108,6 @@ internal final class AppBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension AppBuilderImp: AppBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-0.txt index 78d28fa15..e3341bd1d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-0.txt @@ -31,11 +31,9 @@ extension AppFlowImp: AppFlow {} extension AppFlowImp: AppFlowInterface { internal func attachWindowScene(_ viewController: WindowSceneViewControllable) { - Task { - let flow: WindowSceneFlow = await windowSceneBuilder.build(withListener: context, - viewController: viewController) - attach(starting: flow) - } + let flow: WindowSceneFlow = windowSceneBuilder.build(withListener: context, + viewController: viewController) + attach(starting: flow) } internal func detachWindowScene(_ viewController: WindowSceneViewControllable) { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-1.txt index ca628c8de..8881b3089 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-1.txt @@ -37,11 +37,9 @@ extension AppFlowImp: AppFlow {} extension AppFlowImp: AppFlowInterface { internal func attachWindowScene(_ viewController: WindowSceneViewControllable) { - Task { - let flow: WindowSceneFlow = await windowSceneBuilder.build(withListener: context, - viewController: viewController) - attach(starting: flow) - } + let flow: WindowSceneFlow = windowSceneBuilder.build(withListener: context, + viewController: viewController) + attach(starting: flow) } internal func detachWindowScene(_ viewController: WindowSceneViewControllable) { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-2.txt index a0ecbd47a..6cdcaf337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Flow-UIKit-mockCount-2.txt @@ -41,11 +41,9 @@ extension AppFlowImp: AppFlow {} extension AppFlowImp: AppFlowInterface { internal func attachWindowScene(_ viewController: WindowSceneViewControllable) { - Task { - let flow: WindowSceneFlow = await windowSceneBuilder.build(withListener: context, - viewController: viewController) - attach(starting: flow) - } + let flow: WindowSceneFlow = windowSceneBuilder.build(withListener: context, + viewController: viewController) + attach(starting: flow) } internal func detachWindowScene(_ viewController: WindowSceneViewControllable) { diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-0.txt index eb48b97e1..23b100f59 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-0.txt @@ -11,5 +11,5 @@ internal protocol AppFlow: Flow {} /// @mockable @MainActor internal protocol AppBuilder: AnyObject { - func build() async -> AppFlow + func build() -> AppFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-1.txt index daa634534..07839614a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-1.txt @@ -14,5 +14,5 @@ internal protocol AppFlow: Flow {} /// @mockable @MainActor internal protocol AppBuilder: AnyObject { - func build() async -> AppFlow + func build() -> AppFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-2.txt index 7632b2fa3..5737ece71 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Interface-UIKit-mockCount-2.txt @@ -15,5 +15,5 @@ internal protocol AppFlow: Flow {} /// @mockable @MainActor internal protocol AppBuilder: AnyObject { - func build() async -> AppFlow + func build() -> AppFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt index 4dc4f1e0a..c2006edaa 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class RootBuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: RootListener - ) async -> RootFlow { + ) -> RootFlow { let dynamicBuildDependency: RootDynamicBuildDependency = listener let dynamicComponentDependency: RootDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency - ) async -> RootFlow { + ) -> RootFlow { let listener: RootListener = dynamicBuildDependency let store: Store< RootState, @@ -120,7 +119,6 @@ internal final class RootBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension RootBuilderImp: RootBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt index c38049d27..5c39c7d6b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt @@ -88,18 +88,17 @@ internal final class RootBuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: RootListener - ) async -> RootFlow { + ) -> RootFlow { let dynamicBuildDependency: RootDynamicBuildDependency = listener let dynamicComponentDependency: RootDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency - ) async -> RootFlow { + ) -> RootFlow { let listener: RootListener = dynamicBuildDependency let store: Store< RootState, @@ -130,7 +129,6 @@ internal final class RootBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension RootBuilderImp: RootBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt index 137ccad09..fa365342f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt @@ -90,18 +90,17 @@ internal final class RootBuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: RootListener - ) async -> RootFlow { + ) -> RootFlow { let dynamicBuildDependency: RootDynamicBuildDependency = listener let dynamicComponentDependency: RootDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: RootComponent, dynamicBuildDependency: RootDynamicBuildDependency - ) async -> RootFlow { + ) -> RootFlow { let listener: RootListener = dynamicBuildDependency let store: Store< RootState, @@ -134,7 +133,6 @@ internal final class RootBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension RootBuilderImp: RootBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-0.txt index 99287ee0d..edd561117 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol RootFlow: {} internal protocol RootBuilder: AnyObject { func build( withListener listener: RootListener - ) async -> RootFlow + ) -> RootFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-1.txt index 6287c57da..d1532de90 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol RootFlow: {} internal protocol RootBuilder: AnyObject { func build( withListener listener: RootListener - ) async -> RootFlow + ) -> RootFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-2.txt index 46163817b..d60f8e7cc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Interface-UIKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol RootFlow: {} internal protocol RootBuilder: AnyObject { func build( withListener listener: RootListener - ) async -> RootFlow + ) -> RootFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt index a30889dbf..3dfeeccc2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt @@ -86,18 +86,17 @@ internal final class WindowSceneBuilderImp: AbstractBuilder internal func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) async -> WindowSceneFlow { + ) -> WindowSceneFlow { let dynamicBuildDependency: WindowSceneDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowSceneDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency - ) async -> WindowSceneFlow { + ) -> WindowSceneFlow { let listener: WindowSceneListener = dynamicBuildDependency.0 let viewController: WindowSceneViewControllable = dynamicBuildDependency.1 let analytics: WindowSceneAnalyticsImp = .init() @@ -114,7 +113,6 @@ internal final class WindowSceneBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension WindowSceneBuilderImp: WindowSceneBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt index 2ed401d26..166a021ab 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt @@ -93,18 +93,17 @@ internal final class WindowSceneBuilderImp: AbstractBuilder internal func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) async -> WindowSceneFlow { + ) -> WindowSceneFlow { let dynamicBuildDependency: WindowSceneDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowSceneDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency - ) async -> WindowSceneFlow { + ) -> WindowSceneFlow { let listener: WindowSceneListener = dynamicBuildDependency.0 let viewController: WindowSceneViewControllable = dynamicBuildDependency.1 let analytics: WindowSceneAnalyticsImp = .init( @@ -124,7 +123,6 @@ internal final class WindowSceneBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension WindowSceneBuilderImp: WindowSceneBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt index 1de20a464..b7bb9d7d2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt @@ -95,18 +95,17 @@ internal final class WindowSceneBuilderImp: AbstractBuilder internal func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) async -> WindowSceneFlow { + ) -> WindowSceneFlow { let dynamicBuildDependency: WindowSceneDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowSceneDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: WindowSceneComponent, dynamicBuildDependency: WindowSceneDynamicBuildDependency - ) async -> WindowSceneFlow { + ) -> WindowSceneFlow { let listener: WindowSceneListener = dynamicBuildDependency.0 let viewController: WindowSceneViewControllable = dynamicBuildDependency.1 let analytics: WindowSceneAnalyticsImp = .init( @@ -128,7 +127,6 @@ internal final class WindowSceneBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension WindowSceneBuilderImp: WindowSceneBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-0.txt index 3b058706f..790c957f4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-0.txt @@ -34,11 +34,9 @@ internal final class WindowSceneFlowImp: AbstractFlow } private func attachWindow() { - Task { - let flow: WindowFlow = await windowBuilder.build(withListener: context, - viewController: viewController.makeWindow()) - attach(starting: flow) - } + let flow: WindowFlow = windowBuilder.build(withListener: context, + viewController: viewController.makeWindow()) + attach(starting: flow) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-1.txt index 5f804c50b..3b06a1e1b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-1.txt @@ -40,11 +40,9 @@ internal final class WindowSceneFlowImp: AbstractFlow } private func attachWindow() { - Task { - let flow: WindowFlow = await windowBuilder.build(withListener: context, - viewController: viewController.makeWindow()) - attach(starting: flow) - } + let flow: WindowFlow = windowBuilder.build(withListener: context, + viewController: viewController.makeWindow()) + attach(starting: flow) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-2.txt index d1eeed3f2..7dbab550b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Flow-UIKit-mockCount-2.txt @@ -44,11 +44,9 @@ internal final class WindowSceneFlowImp: AbstractFlow } private func attachWindow() { - Task { - let flow: WindowFlow = await windowBuilder.build(withListener: context, - viewController: viewController.makeWindow()) - attach(starting: flow) - } + let flow: WindowFlow = windowBuilder.build(withListener: context, + viewController: viewController.makeWindow()) + attach(starting: flow) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-0.txt index e77431a25..ae96f00fa 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-0.txt @@ -21,5 +21,5 @@ internal protocol WindowSceneBuilder: AnyObject { func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) async -> WindowSceneFlow + ) -> WindowSceneFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-1.txt index 2d01c4f87..39a87c688 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-1.txt @@ -24,5 +24,5 @@ internal protocol WindowSceneBuilder: AnyObject { func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) async -> WindowSceneFlow + ) -> WindowSceneFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-2.txt index 8b7f88ca6..9ef7d7900 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Interface-UIKit-mockCount-2.txt @@ -25,5 +25,5 @@ internal protocol WindowSceneBuilder: AnyObject { func build( withListener listener: WindowSceneListener, viewController: WindowSceneViewControllable - ) async -> WindowSceneFlow + ) -> WindowSceneFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt index 5e8ca161f..aa90cb81b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt @@ -86,18 +86,17 @@ internal final class WindowBuilderImp: AbstractBuilder internal func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) async -> WindowFlow { + ) -> WindowFlow { let dynamicBuildDependency: WindowDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency - ) async -> WindowFlow { + ) -> WindowFlow { let listener: WindowListener = dynamicBuildDependency.0 let viewController: WindowViewControllable = dynamicBuildDependency.1 let analytics: WindowAnalyticsImp = .init() @@ -114,7 +113,6 @@ internal final class WindowBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension WindowBuilderImp: WindowBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt index 300edfab4..9a940c075 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt @@ -93,18 +93,17 @@ internal final class WindowBuilderImp: AbstractBuilder internal func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) async -> WindowFlow { + ) -> WindowFlow { let dynamicBuildDependency: WindowDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency - ) async -> WindowFlow { + ) -> WindowFlow { let listener: WindowListener = dynamicBuildDependency.0 let viewController: WindowViewControllable = dynamicBuildDependency.1 let analytics: WindowAnalyticsImp = .init( @@ -124,7 +123,6 @@ internal final class WindowBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension WindowBuilderImp: WindowBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt index 0578848b6..0afbc835e 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt @@ -95,18 +95,17 @@ internal final class WindowBuilderImp: AbstractBuilder internal func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) async -> WindowFlow { + ) -> WindowFlow { let dynamicBuildDependency: WindowDynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: WindowDynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: WindowComponent, dynamicBuildDependency: WindowDynamicBuildDependency - ) async -> WindowFlow { + ) -> WindowFlow { let listener: WindowListener = dynamicBuildDependency.0 let viewController: WindowViewControllable = dynamicBuildDependency.1 let analytics: WindowAnalyticsImp = .init( @@ -128,7 +127,6 @@ internal final class WindowBuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension WindowBuilderImp: WindowBuilder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-0.txt index 49de9d185..ce91ea741 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-0.txt @@ -29,11 +29,9 @@ internal final class WindowFlowImp: AbstractFlow } private func attachRoot() { - Task { - let flow: RootFlow = await rootBuilder.build(withListener: context) - viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) - attach(starting: flow) - } + let flow: RootFlow = rootBuilder.build(withListener: context) + viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) + attach(starting: flow) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-1.txt index 577b668ca..a9b416890 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-1.txt @@ -35,11 +35,9 @@ internal final class WindowFlowImp: AbstractFlow } private func attachRoot() { - Task { - let flow: RootFlow = await rootBuilder.build(withListener: context) - viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) - attach(starting: flow) - } + let flow: RootFlow = rootBuilder.build(withListener: context) + viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) + attach(starting: flow) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-2.txt index 37c6ec713..92e6ac540 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Flow-UIKit-mockCount-2.txt @@ -39,11 +39,9 @@ internal final class WindowFlowImp: AbstractFlow } private func attachRoot() { - Task { - let flow: RootFlow = await rootBuilder.build(withListener: context) - viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) - attach(starting: flow) - } + let flow: RootFlow = rootBuilder.build(withListener: context) + viewController.makeKeyAndVisible(rootViewController: flow.getViewController()) + attach(starting: flow) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-0.txt index 53fc354a3..78671ea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-0.txt @@ -19,5 +19,5 @@ internal protocol WindowBuilder: AnyObject { func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) async -> WindowFlow + ) -> WindowFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-1.txt index 8baf7a0c4..da3a5b88c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-1.txt @@ -22,5 +22,5 @@ internal protocol WindowBuilder: AnyObject { func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) async -> WindowFlow + ) -> WindowFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-2.txt index cbf623723..5d694459f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Interface-UIKit-mockCount-2.txt @@ -23,5 +23,5 @@ internal protocol WindowBuilder: AnyObject { func build( withListener listener: WindowListener, viewController: WindowViewControllable - ) async -> WindowFlow + ) -> WindowFlow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt index 5986ffb30..72d805189 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt @@ -82,18 +82,17 @@ internal final class BuilderImp: AbstractBuilder internal func build( withListener listener: Listener, viewController: ViewControllable - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency.0 let viewController: ViewControllable = dynamicBuildDependency.1 let analytics: AnalyticsImp = .init() @@ -109,7 +108,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt index 954753c4e..8801d1856 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt @@ -89,18 +89,17 @@ internal final class BuilderImp: AbstractBuilder internal func build( withListener listener: Listener, viewController: ViewControllable - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency.0 let viewController: ViewControllable = dynamicBuildDependency.1 let analytics: AnalyticsImp = .init( @@ -119,7 +118,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt index db004762d..c8ae0cb8a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt @@ -91,18 +91,17 @@ internal final class BuilderImp: AbstractBuilder internal func build( withListener listener: Listener, viewController: ViewControllable - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency.0 let viewController: ViewControllable = dynamicBuildDependency.1 let analytics: AnalyticsImp = .init( @@ -123,7 +122,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-0.txt index 10f6257e4..e8677b3b1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-0.txt @@ -32,8 +32,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock, viewController: viewControllableMock) - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(builder.build(withListener: listenerMock, viewController: viewControllableMock)) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-1.txt index fa755ae97..2f6621d73 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-1.txt @@ -39,8 +39,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock, viewController: viewControllableMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock, viewController: viewControllableMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-2.txt index 527b3d058..6ef0e796a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.BuilderTests-mockCount-2.txt @@ -40,8 +40,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock, viewController: viewControllableMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock, viewController: viewControllableMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-0.txt index 1ad9daabb..e5667d4f2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-0.txt @@ -26,5 +26,5 @@ internal protocol Builder: AnyObject { func build( withListener listener: Listener, viewController: ViewControllable - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-1.txt index 816fcd359..18604b666 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-1.txt @@ -28,5 +28,5 @@ internal protocol Builder: AnyObject { func build( withListener listener: Listener, viewController: ViewControllable - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-2.txt index 26dc8824d..f59a81bb4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Interface-mockCount-2.txt @@ -29,5 +29,5 @@ internal protocol Builder: AnyObject { func build( withListener listener: Listener, viewController: ViewControllable - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt index 1dd139fca..b7a6b5720 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt @@ -79,18 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt index 8a85c7fdc..fffa48109 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt @@ -85,26 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt index 92c2141c1..9aab31879 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt index 1dd139fca..b7a6b5720 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt @@ -79,18 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt index 8a85c7fdc..fffa48109 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt @@ -85,26 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt index 92c2141c1..9aab31879 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-AppKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-Custom-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Interface-UIKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt index 90c5794f9..30798fcab 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt index 90c5794f9..30798fcab 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt index 90c5794f9..30798fcab 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt index 90c5794f9..30798fcab 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt index 90c5794f9..30798fcab 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt index 1dd139fca..b7a6b5720 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt @@ -79,18 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt index 8a85c7fdc..fffa48109 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt @@ -85,26 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt index 92c2141c1..9aab31879 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt index 1dd139fca..b7a6b5720 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt @@ -79,18 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt index 8a85c7fdc..fffa48109 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt @@ -85,26 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt index 92c2141c1..9aab31879 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-0.txt index 1b66befec..117d706ea 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-0.txt @@ -29,8 +29,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(builder.build(withListener: listenerMock)) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-1.txt index 3dd552984..8ffec0bd4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-1.txt @@ -31,8 +31,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-2.txt index 735d1d1bc..49331c450 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKit-mockCount-2.txt @@ -32,8 +32,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt index 1b66befec..117d706ea 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt @@ -29,8 +29,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(builder.build(withListener: listenerMock)) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt index 3dd552984..8ffec0bd4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt @@ -31,8 +31,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt index 735d1d1bc..49331c450 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt @@ -32,8 +32,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-0.txt index 1b66befec..117d706ea 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-0.txt @@ -29,8 +29,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(builder.build(withListener: listenerMock)) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-1.txt index 3dd552984..8ffec0bd4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-1.txt @@ -31,8 +31,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-2.txt index 735d1d1bc..49331c450 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-Custom-mockCount-2.txt @@ -32,8 +32,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-0.txt index 1b66befec..117d706ea 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-0.txt @@ -29,8 +29,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(builder.build(withListener: listenerMock)) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-1.txt index 3dd552984..8ffec0bd4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-1.txt @@ -31,8 +31,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-2.txt index 735d1d1bc..49331c450 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKit-mockCount-2.txt @@ -32,8 +32,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt index 1b66befec..117d706ea 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt @@ -29,8 +29,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(builder.build(withListener: listenerMock)) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt index 3dd552984..8ffec0bd4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt @@ -31,8 +31,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt index 735d1d1bc..49331c450 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt @@ -32,8 +32,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-AppKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-Custom-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Interface-UIKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt index 90c5794f9..30798fcab 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt index 90c5794f9..30798fcab 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt index 90c5794f9..30798fcab 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt index 90c5794f9..30798fcab 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt index 90c5794f9..30798fcab 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt index 78e27586c..4f599b99a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt @@ -68,14 +68,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-0.txt index 340983755..49e995042 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-0.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(plugin.create()) } @MainActor - func testOverride() async { - let result = await plugin.override() - XCTAssertNotNil(result) + func testOverride() { + XCTAssertNotNil(plugin.override()) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-1.txt index 185b285a7..37c7ece64 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-1.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-2.txt index 185b285a7..37c7ece64 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKit-mockCount-2.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-0.txt index 340983755..49e995042 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-0.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(plugin.create()) } @MainActor - func testOverride() async { - let result = await plugin.override() - XCTAssertNotNil(result) + func testOverride() { + XCTAssertNotNil(plugin.override()) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-1.txt index 185b285a7..37c7ece64 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-1.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-2.txt index 185b285a7..37c7ece64 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-AppKitSwiftUI-mockCount-2.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-0.txt index 340983755..49e995042 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-0.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(plugin.create()) } @MainActor - func testOverride() async { - let result = await plugin.override() - XCTAssertNotNil(result) + func testOverride() { + XCTAssertNotNil(plugin.override()) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-1.txt index 185b285a7..37c7ece64 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-1.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-2.txt index 185b285a7..37c7ece64 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-Custom-mockCount-2.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-0.txt index 340983755..49e995042 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-0.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(plugin.create()) } @MainActor - func testOverride() async { - let result = await plugin.override() - XCTAssertNotNil(result) + func testOverride() { + XCTAssertNotNil(plugin.override()) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-1.txt index 185b285a7..37c7ece64 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-1.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-2.txt index 185b285a7..37c7ece64 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKit-mockCount-2.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-0.txt index 340983755..49e995042 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-0.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(plugin.create()) } @MainActor - func testOverride() async { - let result = await plugin.override() - XCTAssertNotNil(result) + func testOverride() { + XCTAssertNotNil(plugin.override()) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-1.txt index 185b285a7..37c7ece64 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-1.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-2.txt index 185b285a7..37c7ece64 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.PluginTests-UIKitSwiftUI-mockCount-2.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt index 1dd139fca..b7a6b5720 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt @@ -79,18 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt index 8a85c7fdc..fffa48109 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt @@ -85,26 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt index 92c2141c1..9aab31879 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt index 3fcb1a926..34c4ea4f9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt @@ -81,18 +81,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt index 30182ae8b..b83257337 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt index 4c2320eef..6b62627b7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt @@ -89,26 +89,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt index 1dd139fca..b7a6b5720 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt @@ -79,18 +79,17 @@ internal final class BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -120,7 +119,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt index 8a85c7fdc..fffa48109 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt @@ -85,26 +85,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -137,7 +136,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt index 92c2141c1..9aab31879 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt @@ -87,26 +87,25 @@ internal final class BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: Listener - ) async -> Flow { - await build(withListener: listener as Listener) + ) -> Flow { + build(withListener: listener as Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: Listener - ) async -> Flow { + ) -> Flow { let dynamicBuildDependency: DynamicBuildDependency = listener let dynamicComponentDependency: DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: Component, dynamicBuildDependency: DynamicBuildDependency - ) async -> Flow { + ) -> Flow { let listener: Listener = dynamicBuildDependency let store: Store< State, @@ -141,7 +140,6 @@ internal final class BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension BuilderImp: Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-0.txt index 1b66befec..117d706ea 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-0.txt @@ -29,8 +29,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(builder.build(withListener: listenerMock)) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-1.txt index 3dd552984..8ffec0bd4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-1.txt @@ -31,8 +31,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-2.txt index 735d1d1bc..49331c450 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKit-mockCount-2.txt @@ -32,8 +32,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt index 1b66befec..117d706ea 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-0.txt @@ -29,8 +29,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(builder.build(withListener: listenerMock)) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt index 3dd552984..8ffec0bd4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-1.txt @@ -31,8 +31,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt index 735d1d1bc..49331c450 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-AppKitSwiftUI-mockCount-2.txt @@ -32,8 +32,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-0.txt index 1b66befec..117d706ea 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-0.txt @@ -29,8 +29,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(builder.build(withListener: listenerMock)) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-1.txt index 3dd552984..8ffec0bd4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-1.txt @@ -31,8 +31,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-2.txt index 735d1d1bc..49331c450 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-Custom-mockCount-2.txt @@ -32,8 +32,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-0.txt index 1b66befec..117d706ea 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-0.txt @@ -29,8 +29,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(builder.build(withListener: listenerMock)) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-1.txt index 3dd552984..8ffec0bd4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-1.txt @@ -31,8 +31,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-2.txt index 735d1d1bc..49331c450 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKit-mockCount-2.txt @@ -32,8 +32,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt index 1b66befec..117d706ea 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-0.txt @@ -29,8 +29,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(builder.build(withListener: listenerMock)) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt index 3dd552984..8ffec0bd4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-1.txt @@ -31,8 +31,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt index 735d1d1bc..49331c450 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.BuilderTests-UIKitSwiftUI-mockCount-2.txt @@ -32,8 +32,7 @@ final class BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-AppKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-Custom-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKit-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-0.txt index 09f6b5ab9..b29606379 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-0.txt @@ -18,5 +18,5 @@ internal protocol Flow: {} internal protocol Builder: AnyObject { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-1.txt index fb159c30f..e4ab5b6a3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-1.txt @@ -21,5 +21,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-2.txt index 54d41d7b5..134a22f04 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Interface-UIKitSwiftUI-mockCount-2.txt @@ -22,5 +22,5 @@ internal protocol Flow: Flow {} internal protocol Builder: Builder { func build( withListener listener: Listener - ) async -> Flow + ) -> Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt index ac79faf80..03420e0c1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt index 78b9ada71..9f80bc65a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt @@ -70,14 +70,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt index 34ffa0390..0e9ecda10 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt @@ -71,14 +71,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt index ac79faf80..03420e0c1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt @@ -67,14 +67,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt index 78b9ada71..9f80bc65a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt @@ -70,14 +70,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt index 34ffa0390..0e9ecda10 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt @@ -71,14 +71,12 @@ internal final class PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: PluginComponent - ) async -> Builder { + ) -> Builder { BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension PluginImp: Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-0.txt index a7739ff68..4acfeb999 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-0.txt @@ -26,14 +26,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - XCTAssertNotNil(result) + func testCreate() { + XCTAssertNotNil(plugin.create()) } @MainActor - func testOverride() async { - let result = await plugin.override() - XCTAssertNotNil(result) + func testOverride() { + XCTAssertNotNil(plugin.override()) } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-1.txt index 2f453ea40..fa8eee96b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-1.txt @@ -28,14 +28,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-2.txt index d4954fb77..b8c08f5af 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.PluginTests-mockCount-2.txt @@ -29,14 +29,12 @@ final class PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt index 2f1d05e27..62c03b80c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt @@ -85,18 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -124,7 +123,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Interface.txt index ff327c352..9eeb5b5a4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt index 3026fa702..268cb51a2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt @@ -84,26 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) async -> ___VARIABLE_PluginListName___Flow { - await build(withListener: listener as ___VARIABLE_productName___Listener) + ) -> ___VARIABLE_PluginListName___Flow { + build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -131,7 +130,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Interface.txt index 1c87209c8..48b01e193 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt index f6273b862..537c61d1f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt @@ -83,18 +83,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -124,7 +123,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Interface.txt index ff327c352..9eeb5b5a4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt index 750b7345f..f71eb4ff1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt @@ -82,26 +82,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) async -> ___VARIABLE_PluginListName___Flow { - await build(withListener: listener as ___VARIABLE_productName___Listener) + ) -> ___VARIABLE_PluginListName___Flow { + build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -131,7 +130,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt index 1c87209c8..48b01e193 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt index 2f1d05e27..62c03b80c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt @@ -85,18 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -124,7 +123,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Interface.txt index ff327c352..9eeb5b5a4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt index 3026fa702..268cb51a2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt @@ -84,26 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) async -> ___VARIABLE_PluginListName___Flow { - await build(withListener: listener as ___VARIABLE_productName___Listener) + ) -> ___VARIABLE_PluginListName___Flow { + build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -131,7 +130,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Interface.txt index 1c87209c8..48b01e193 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt index 2f1d05e27..62c03b80c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt @@ -85,18 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -124,7 +123,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Interface.txt index ff327c352..9eeb5b5a4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt index 3026fa702..268cb51a2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt @@ -84,26 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) async -> ___VARIABLE_PluginListName___Flow { - await build(withListener: listener as ___VARIABLE_productName___Listener) + ) -> ___VARIABLE_PluginListName___Flow { + build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -131,7 +130,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Interface.txt index 1c87209c8..48b01e193 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt index f6273b862..537c61d1f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt @@ -83,18 +83,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -124,7 +123,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Interface.txt index ff327c352..9eeb5b5a4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt index 750b7345f..f71eb4ff1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt @@ -82,26 +82,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) async -> ___VARIABLE_PluginListName___Flow { - await build(withListener: listener as ___VARIABLE_productName___Listener) + ) -> ___VARIABLE_PluginListName___Flow { + build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -131,7 +130,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt index 1c87209c8..48b01e193 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt index c83618ac8..6d750828b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt @@ -86,18 +86,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder internal func build( withListener listener: ___VARIABLE_productName___Listener, viewController: ___VARIABLE_productName___ViewControllable - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency.0 let viewController: ___VARIABLE_productName___ViewControllable = dynamicBuildDependency.1 let analytics: ___VARIABLE_productName___AnalyticsImp = .init() @@ -113,7 +112,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-BuilderTests.txt index 8bedbec2f..b276fa54e 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-BuilderTests.txt @@ -36,8 +36,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock, viewController: viewControllableMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock, viewController: viewControllableMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Interface.txt index 97330d875..ccf913b89 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Interface.txt @@ -28,5 +28,5 @@ internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener, viewController: ___VARIABLE_productName___ViewControllable - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt index 2f1d05e27..62c03b80c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt @@ -85,18 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -124,7 +123,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Interface.txt index ff327c352..9eeb5b5a4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt index 3026fa702..268cb51a2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt @@ -84,26 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) async -> ___VARIABLE_PluginListName___Flow { - await build(withListener: listener as ___VARIABLE_productName___Listener) + ) -> ___VARIABLE_PluginListName___Flow { + build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -131,7 +130,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Interface.txt index 1c87209c8..48b01e193 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt index f6273b862..537c61d1f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt @@ -83,18 +83,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -124,7 +123,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Interface.txt index ff327c352..9eeb5b5a4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt index 750b7345f..f71eb4ff1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt @@ -82,26 +82,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) async -> ___VARIABLE_PluginListName___Flow { - await build(withListener: listener as ___VARIABLE_productName___Listener) + ) -> ___VARIABLE_PluginListName___Flow { + build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -131,7 +130,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt index 1c87209c8..48b01e193 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt index 2f1d05e27..62c03b80c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt @@ -85,18 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -124,7 +123,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Interface.txt index ff327c352..9eeb5b5a4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt index 3026fa702..268cb51a2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt @@ -84,26 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) async -> ___VARIABLE_PluginListName___Flow { - await build(withListener: listener as ___VARIABLE_productName___Listener) + ) -> ___VARIABLE_PluginListName___Flow { + build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -131,7 +130,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Interface.txt index 1c87209c8..48b01e193 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt index 2f1d05e27..62c03b80c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt @@ -85,18 +85,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -124,7 +123,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Interface.txt index ff327c352..9eeb5b5a4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt index 3026fa702..268cb51a2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt @@ -84,26 +84,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) async -> ___VARIABLE_PluginListName___Flow { - await build(withListener: listener as ___VARIABLE_productName___Listener) + ) -> ___VARIABLE_PluginListName___Flow { + build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -131,7 +130,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Interface.txt index 1c87209c8..48b01e193 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt index f6273b862..537c61d1f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt @@ -83,18 +83,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -124,7 +123,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Interface.txt index ff327c352..9eeb5b5a4 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ViewControllableFlow {} internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt index 750b7345f..f71eb4ff1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt @@ -82,26 +82,25 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder /// Provides plugin list compatibility. internal func build( withListener listener: ___VARIABLE_PluginListName___Listener - ) async -> ___VARIABLE_PluginListName___Flow { - await build(withListener: listener as ___VARIABLE_productName___Listener) + ) -> ___VARIABLE_PluginListName___Flow { + build(withListener: listener as ___VARIABLE_productName___Listener) } /// Directs arguments passed through the base class, determining whether each will be provided to its factory build /// method or the component initializer. internal func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = listener let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency let store: Store< ___VARIABLE_productName___State, @@ -131,7 +130,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt index 74c535afb..61f2c792d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-BuilderTests.txt @@ -33,8 +33,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt index 1c87209c8..48b01e193 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Interface.txt @@ -20,5 +20,5 @@ internal protocol ___VARIABLE_productName___Flow: ___VARIABLE_PluginListName___F internal protocol ___VARIABLE_productName___Builder: ___VARIABLE_PluginListName___Builder { func build( withListener listener: ___VARIABLE_productName___Listener - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt index c83618ac8..6d750828b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt @@ -86,18 +86,17 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder internal func build( withListener listener: ___VARIABLE_productName___Listener, viewController: ___VARIABLE_productName___ViewControllable - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency = (listener, viewController) let dynamicComponentDependency: ___VARIABLE_productName___DynamicComponentDependency = () - return await build(dynamicBuildDependency, dynamicComponentDependency) + return build(dynamicBuildDependency, dynamicComponentDependency) } - // swiftlint:disable async_without_await /// Implements the factory build method where instances are initialized. override internal func build( component: ___VARIABLE_productName___Component, dynamicBuildDependency: ___VARIABLE_productName___DynamicBuildDependency - ) async -> ___VARIABLE_productName___Flow { + ) -> ___VARIABLE_productName___Flow { let listener: ___VARIABLE_productName___Listener = dynamicBuildDependency.0 let viewController: ___VARIABLE_productName___ViewControllable = dynamicBuildDependency.1 let analytics: ___VARIABLE_productName___AnalyticsImp = .init() @@ -113,7 +112,6 @@ internal final class ___VARIABLE_productName___BuilderImp: AbstractBuilder context.flow = flow return flow } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___BuilderImp: ___VARIABLE_productName___Builder {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-BuilderTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-BuilderTests.txt index 8bedbec2f..b276fa54e 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-BuilderTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-BuilderTests.txt @@ -36,8 +36,7 @@ final class ___VARIABLE_productName___BuilderTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await builder.build(withListener: listenerMock, viewController: viewControllableMock) - expect(result) != nil + func testCreate() { + expect { [self] in builder.build(withListener: listenerMock, viewController: viewControllableMock) } != nil } } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Interface.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Interface.txt index 97330d875..ccf913b89 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Interface.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Interface.txt @@ -28,5 +28,5 @@ internal protocol ___VARIABLE_productName___Builder: AnyObject { func build( withListener listener: ___VARIABLE_productName___Listener, viewController: ___VARIABLE_productName___ViewControllable - ) async -> ___VARIABLE_productName___Flow + ) -> ___VARIABLE_productName___Flow } diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt index 7cfab9271..c62618f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt @@ -70,14 +70,12 @@ internal final class ___VARIABLE_productName___PluginImp: Plugin true } - // swiftlint:disable async_without_await /// Implements the factory build method where the instance is initialized. override internal func build( component: ___VARIABLE_productName___PluginComponent - ) async -> ___VARIABLE_productName___Builder { + ) -> ___VARIABLE_productName___Builder { ___VARIABLE_productName___BuilderImp(componentFactory: component.componentFactory) } - // swiftlint:enable async_without_await } extension ___VARIABLE_productName___PluginImp: ___VARIABLE_productName___Plugin {} diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-PluginTests.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-PluginTests.txt index 0dbb2504d..fdb1359a1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-PluginTests.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-PluginTests.txt @@ -30,14 +30,12 @@ final class ___VARIABLE_productName___PluginTests: XCTestCase { } @MainActor - func testCreate() async { - let result = await plugin.create() - expect(result) != nil + func testCreate() { + expect { [self] in plugin.create() } != nil } @MainActor - func testOverride() async { - let result = await plugin.override() - expect(result) != nil + func testOverride() { + expect { [self] in plugin.override() } != nil } } diff --git a/genesis.yml b/genesis.yml index 440901c35..b1025da3e 100644 --- a/genesis.yml +++ b/genesis.yml @@ -633,7 +633,7 @@ files: return appComponentFactory() } - private var appFlow: AppFlow? + private lazy var appFlow: AppFlow = appBuilder.build() internal convenience init(appBuilder: AppBuilder) { self.init() @@ -644,27 +644,19 @@ files: _ application: UIApplication, // swiftlint:disable:next discouraged_optional_collection didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { - Task { - await bootstrap() - } + bootstrap() return true } - @MainActor - private func bootstrap() async { + private func bootstrap() { #if DEBUG guard appBuilder is AppBuilderImp - else { - appFlow = await appBuilder.build() - appFlow?.start() - return - } + else { return appFlow.start() } guard NSClassFromString("XCTestCase") == nil else { return } #endif registerProviderFactories() - appFlow = await appBuilder.build() - appFlow?.start() + appFlow.start() } }