Skip to content

Commit c525f81

Browse files
New Snapshots for PluginListInterface File (#903)
* Regened Snapshots for Addition of PluginListInterface File * More Snapshots * fixed snapshots
1 parent 7eb6777 commit c525f81

25 files changed

+191
-137
lines changed

Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testConfig.1.txt

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
▿ pluginListImports: 2 members
4747
- "<pluginListImports-1>"
4848
- "<pluginListImports-2>"
49+
- pluginListInterfaceImports: 0 members
4950
- publisherFailureType: "<publisherFailureType>"
5051
- publisherType: "<publisherType>"
5152
▿ reactiveImports: 2 members

Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testConfigWithEmptyFileContents.1.txt

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- isTestTemplatesGenerationEnabled: true
1919
- isViewInjectedTemplateEnabled: true
2020
- pluginListImports: 0 members
21+
- pluginListInterfaceImports: 0 members
2122
- publisherFailureType: "Never"
2223
- publisherType: "AnyPublisher"
2324
▿ reactiveImports: 1 member

Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testDecodingFromEmptyString.1.txt

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- isTestTemplatesGenerationEnabled: true
1919
- isViewInjectedTemplateEnabled: true
2020
- pluginListImports: 0 members
21+
- pluginListInterfaceImports: 0 members
2122
- publisherFailureType: "Never"
2223
- publisherType: "AnyPublisher"
2324
▿ reactiveImports: 1 member

Tests/NodesGeneratorTests/__Snapshots__/ConfigTests/testDecodingWithEmptyArray.1.txt

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- isTestTemplatesGenerationEnabled: true
1919
- isViewInjectedTemplateEnabled: true
2020
- pluginListImports: 0 members
21+
- pluginListInterfaceImports: 0 members
2122
- publisherFailureType: "Never"
2223
- publisherType: "AnyPublisher"
2324
▿ reactiveImports: 1 member

Tests/NodesGeneratorTests/__Snapshots__/StencilContextsTests/testPluginListStencilContext.1.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
7 key/value pairs
1+
8 key/value pairs
22
▿ (2 elements)
33
- key: "file_header"
44
- value: "<fileHeader>"
@@ -12,6 +12,10 @@
1212
- key: "plugin_list_imports"
1313
▿ value: 1 element
1414
- "<pluginListImport>"
15+
▿ (2 elements)
16+
- key: "plugin_list_interface_imports"
17+
▿ value: 1 element
18+
- "<pluginListInterfaceImport>"
1519
▿ (2 elements)
1620
- key: "plugin_list_name"
1721
- value: "<pluginListName>"

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-0.txt

-16
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,6 @@ public final class <pluginListName>PluginListComponent: Component
6464

6565
// MARK: - Plugin List
6666

67-
/// Declares the type of key used to identify plugins within the collection.
68-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
69-
internal typealias <pluginListName>PluginListKeyType = String
70-
71-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
72-
/// - NOTE: An alias to a tuple is supported.
73-
internal typealias <pluginListName>PluginListStateType = Void
74-
75-
/// @mockable
76-
@MainActor
77-
internal protocol <pluginListName>PluginList {
78-
func createAll() -> [<pluginListName>Builder]
79-
func create() -> <pluginListName>Builder?
80-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
81-
}
82-
8367
internal final class <pluginListName>PluginListImp: PluginList
8468
<
8569
<pluginListName>PluginListKeyType,

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-1.txt

-17
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,6 @@ public final class <pluginListName>PluginListComponent: Component
6969

7070
// MARK: - Plugin List
7171

72-
/// Declares the type of key used to identify plugins within the collection.
73-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
74-
internal typealias <pluginListName>PluginListKeyType = String
75-
76-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
77-
/// - NOTE: An alias to a tuple is supported.
78-
internal typealias <pluginListName>PluginListStateType = Void
79-
80-
// periphery:ignore
81-
/// @mockable
82-
@MainActor
83-
internal protocol <pluginListName>PluginList {
84-
func createAll() -> [<pluginListName>Builder]
85-
func create() -> <pluginListName>Builder?
86-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
87-
}
88-
8972
// periphery:ignore
9073
internal final class <pluginListName>PluginListImp: PluginList
9174
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-2.txt

-17
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,6 @@ public final class <pluginListName>PluginListComponent: Component
7070

7171
// MARK: - Plugin List
7272

73-
/// Declares the type of key used to identify plugins within the collection.
74-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
75-
internal typealias <pluginListName>PluginListKeyType = String
76-
77-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
78-
/// - NOTE: An alias to a tuple is supported.
79-
internal typealias <pluginListName>PluginListStateType = Void
80-
81-
// periphery:ignore
82-
/// @mockable
83-
@MainActor
84-
internal protocol <pluginListName>PluginList {
85-
func createAll() -> [<pluginListName>Builder]
86-
func create() -> <pluginListName>Builder?
87-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
88-
}
89-
9073
// periphery:ignore
9174
internal final class <pluginListName>PluginListImp: PluginList
9275
<
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//<fileHeader>
2+
3+
// This file defines the protocols and types in the Plugin List interface requiring public ACL for use in another module.
4+
5+
/// Declares the type of key used to identify plugins within the collection.
6+
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
7+
internal typealias <pluginListName>PluginListKeyType = String
8+
9+
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
10+
/// - NOTE: An alias to a tuple is supported.
11+
internal typealias <pluginListName>PluginListStateType = Void
12+
13+
/// @mockable
14+
@MainActor
15+
internal protocol <pluginListName>PluginList {
16+
func createAll() -> [<pluginListName>Builder]
17+
func create() -> <pluginListName>Builder?
18+
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//<fileHeader>
2+
3+
import <pluginListInterfaceImport>
4+
5+
// This file defines the protocols and types in the Plugin List interface requiring public ACL for use in another module.
6+
7+
/// Declares the type of key used to identify plugins within the collection.
8+
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
9+
internal typealias <pluginListName>PluginListKeyType = String
10+
11+
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
12+
/// - NOTE: An alias to a tuple is supported.
13+
internal typealias <pluginListName>PluginListStateType = Void
14+
15+
// periphery:ignore
16+
/// @mockable
17+
@MainActor
18+
internal protocol <pluginListName>PluginList {
19+
func createAll() -> [<pluginListName>Builder]
20+
func create() -> <pluginListName>Builder?
21+
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//<fileHeader>
2+
3+
import <pluginListInterfaceImport1>
4+
import <pluginListInterfaceImport2>
5+
6+
// This file defines the protocols and types in the Plugin List interface requiring public ACL for use in another module.
7+
8+
/// Declares the type of key used to identify plugins within the collection.
9+
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
10+
internal typealias <pluginListName>PluginListKeyType = String
11+
12+
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
13+
/// - NOTE: An alias to a tuple is supported.
14+
internal typealias <pluginListName>PluginListStateType = Void
15+
16+
// periphery:ignore
17+
/// @mockable
18+
@MainActor
19+
internal protocol <pluginListName>PluginList {
20+
func createAll() -> [<pluginListName>Builder]
21+
func create() -> <pluginListName>Builder?
22+
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
23+
}

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-0.txt

-16
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,6 @@ public final class <pluginListName>PluginListComponent: Component
6464

6565
// MARK: - Plugin List
6666

67-
/// Declares the type of key used to identify plugins within the collection.
68-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
69-
internal typealias <pluginListName>PluginListKeyType = String
70-
71-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
72-
/// - NOTE: An alias to a tuple is supported.
73-
internal typealias <pluginListName>PluginListStateType = Void
74-
75-
/// @mockable
76-
@MainActor
77-
internal protocol <pluginListName>PluginList {
78-
func createAll() -> [<pluginListName>Builder]
79-
func create() -> <pluginListName>Builder?
80-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
81-
}
82-
8367
internal final class <pluginListName>PluginListImp: PluginList
8468
<
8569
<pluginListName>PluginListKeyType,

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-1.txt

-17
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,6 @@ public final class <pluginListName>PluginListComponent: Component
6969

7070
// MARK: - Plugin List
7171

72-
/// Declares the type of key used to identify plugins within the collection.
73-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
74-
internal typealias <pluginListName>PluginListKeyType = String
75-
76-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
77-
/// - NOTE: An alias to a tuple is supported.
78-
internal typealias <pluginListName>PluginListStateType = Void
79-
80-
// periphery:ignore
81-
/// @mockable
82-
@MainActor
83-
internal protocol <pluginListName>PluginList {
84-
func createAll() -> [<pluginListName>Builder]
85-
func create() -> <pluginListName>Builder?
86-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
87-
}
88-
8972
// periphery:ignore
9073
internal final class <pluginListName>PluginListImp: PluginList
9174
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-2.txt

-17
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,6 @@ public final class <pluginListName>PluginListComponent: Component
7070

7171
// MARK: - Plugin List
7272

73-
/// Declares the type of key used to identify plugins within the collection.
74-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
75-
internal typealias <pluginListName>PluginListKeyType = String
76-
77-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
78-
/// - NOTE: An alias to a tuple is supported.
79-
internal typealias <pluginListName>PluginListStateType = Void
80-
81-
// periphery:ignore
82-
/// @mockable
83-
@MainActor
84-
internal protocol <pluginListName>PluginList {
85-
func createAll() -> [<pluginListName>Builder]
86-
func create() -> <pluginListName>Builder?
87-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
88-
}
89-
9073
// periphery:ignore
9174
internal final class <pluginListName>PluginListImp: PluginList
9275
<
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//<fileHeader>
2+
3+
// This file defines the protocols and types in the Plugin List interface requiring public ACL for use in another module.
4+
5+
/// Declares the type of key used to identify plugins within the collection.
6+
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
7+
internal typealias <pluginListName>PluginListKeyType = String
8+
9+
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
10+
/// - NOTE: An alias to a tuple is supported.
11+
internal typealias <pluginListName>PluginListStateType = Void
12+
13+
/// @mockable
14+
@MainActor
15+
internal protocol <pluginListName>PluginList {
16+
func createAll() -> [<pluginListName>Builder]
17+
func create() -> <pluginListName>Builder?
18+
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//<fileHeader>
2+
3+
import <pluginListInterfaceImport>
4+
5+
// This file defines the protocols and types in the Plugin List interface requiring public ACL for use in another module.
6+
7+
/// Declares the type of key used to identify plugins within the collection.
8+
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
9+
internal typealias <pluginListName>PluginListKeyType = String
10+
11+
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
12+
/// - NOTE: An alias to a tuple is supported.
13+
internal typealias <pluginListName>PluginListStateType = Void
14+
15+
// periphery:ignore
16+
/// @mockable
17+
@MainActor
18+
internal protocol <pluginListName>PluginList {
19+
func createAll() -> [<pluginListName>Builder]
20+
func create() -> <pluginListName>Builder?
21+
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//<fileHeader>
2+
3+
import <pluginListInterfaceImport1>
4+
import <pluginListInterfaceImport2>
5+
6+
// This file defines the protocols and types in the Plugin List interface requiring public ACL for use in another module.
7+
8+
/// Declares the type of key used to identify plugins within the collection.
9+
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
10+
internal typealias <pluginListName>PluginListKeyType = String
11+
12+
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
13+
/// - NOTE: An alias to a tuple is supported.
14+
internal typealias <pluginListName>PluginListStateType = Void
15+
16+
// periphery:ignore
17+
/// @mockable
18+
@MainActor
19+
internal protocol <pluginListName>PluginList {
20+
func createAll() -> [<pluginListName>Builder]
21+
func create() -> <pluginListName>Builder?
22+
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
23+
}

Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-PluginList-PluginList.txt

-16
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,6 @@ public final class ___VARIABLE_productName___PluginListComponent: Component
6767

6868
// MARK: - Plugin List
6969

70-
/// Declares the type of key used to identify plugins within the collection.
71-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
72-
internal typealias ___VARIABLE_productName___PluginListKeyType = String
73-
74-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
75-
/// - NOTE: An alias to a tuple is supported.
76-
internal typealias ___VARIABLE_productName___PluginListStateType = Void
77-
78-
/// @mockable
79-
@MainActor
80-
internal protocol ___VARIABLE_productName___PluginList {
81-
func createAll() -> [___VARIABLE_productName___Builder]
82-
func create() -> ___VARIABLE_productName___Builder?
83-
func create(key: ___VARIABLE_productName___PluginListKeyType) -> ___VARIABLE_productName___Builder?
84-
}
85-
8670
internal final class ___VARIABLE_productName___PluginListImp: PluginList
8771
<
8872
___VARIABLE_productName___PluginListKeyType,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//___FILEHEADER___
2+
3+
// This file defines the protocols and types in the Plugin List interface requiring public ACL for use in another module.
4+
5+
/// Declares the type of key used to identify plugins within the collection.
6+
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
7+
internal typealias ___VARIABLE_productName___PluginListKeyType = String
8+
9+
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
10+
/// - NOTE: An alias to a tuple is supported.
11+
internal typealias ___VARIABLE_productName___PluginListStateType = Void
12+
13+
/// @mockable
14+
@MainActor
15+
internal protocol ___VARIABLE_productName___PluginList {
16+
func createAll() -> [___VARIABLE_productName___Builder]
17+
func create() -> ___VARIABLE_productName___Builder?
18+
func create(key: ___VARIABLE_productName___PluginListKeyType) -> ___VARIABLE_productName___Builder?
19+
}

Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Writes.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
195 elements
1+
196 elements
22
▿ (2 elements)
33
- path: "/Developer/Xcode/Templates/File Templates/Nodes Architecture Framework (identifier)/Node.xctemplate/AppKitCreatedForPluginList/___FILEBASENAME___Analytics.swift"
44
- atomically: true
@@ -557,6 +557,9 @@
557557
▿ (2 elements)
558558
- path: "/Developer/Xcode/Templates/File Templates/Nodes Architecture Framework (identifier)/Plugin List.xctemplate/___FILEBASENAME___PluginList.swift"
559559
- atomically: true
560+
▿ (2 elements)
561+
- path: "/Developer/Xcode/Templates/File Templates/Nodes Architecture Framework (identifier)/Plugin List.xctemplate/___FILEBASENAME___PluginListInterface.swift"
562+
- atomically: true
560563
▿ (2 elements)
561564
- path: "/Developer/Xcode/Templates/File Templates/Nodes Architecture Framework (identifier)/Plugin List.xctemplate/___FILEBASENAME___PluginListTests.swift"
562565
- atomically: true

0 commit comments

Comments
 (0)