@@ -45,7 +45,12 @@ void main() {
45
45
test ('Integration.classInstantiate' , () {
46
46
expect (
47
47
TestIntegration ().classInstantiate (
48
- AssetType (rootPath: resPath, path: 'assets/path' , flavors: {'test' }),
48
+ AssetType (
49
+ rootPath: resPath,
50
+ path: 'assets/path' ,
51
+ flavors: {'test' },
52
+ transformers: {},
53
+ ),
49
54
),
50
55
'TestIntegration(\' assets/path\' , flavors: {\' test\' },)' ,
51
56
);
@@ -63,6 +68,7 @@ void main() {
63
68
rootPath: resPath,
64
69
path: 'assets/path' ,
65
70
flavors: {},
71
+ transformers: {},
66
72
),
67
73
),
68
74
'SvgGenImage(\' assets/path\' )' ,
@@ -73,26 +79,62 @@ void main() {
73
79
rootPath: resPath,
74
80
path: 'assets/path' ,
75
81
flavors: {'test' },
82
+ transformers: {},
76
83
),
77
84
),
78
85
'SvgGenImage(\' assets/path\' , flavors: {\' test\' },)' ,
79
86
);
87
+ expect (
88
+ integration.classInstantiate (
89
+ AssetType (
90
+ rootPath: resPath,
91
+ path: 'assets/path/dog.svg' ,
92
+ flavors: {},
93
+ transformers: {},
94
+ ),
95
+ ),
96
+ 'SvgGenImage(\' assets/path/dog.svg\' )' ,
97
+ );
80
98
expect (
81
99
integration.classInstantiate (
82
100
AssetType (
83
101
rootPath: resPath,
84
102
path: 'assets/path/dog.vec' ,
85
103
flavors: {},
104
+ transformers: {},
86
105
),
87
106
),
88
107
'SvgGenImage.vec(\' assets/path/dog.vec\' )' ,
89
108
);
109
+ expect (
110
+ integration.classInstantiate (
111
+ AssetType (
112
+ rootPath: resPath,
113
+ path: 'assets/path/dog.svg' ,
114
+ flavors: {},
115
+ transformers: {'test' },
116
+ ),
117
+ ),
118
+ 'SvgGenImage(\' assets/path/dog.svg\' )' ,
119
+ );
120
+ expect (
121
+ integration.classInstantiate (
122
+ AssetType (
123
+ rootPath: resPath,
124
+ path: 'assets/path/dog.svg' ,
125
+ flavors: {},
126
+ transformers: {'vector_graphics_compiler' },
127
+ ),
128
+ ),
129
+ 'SvgGenImage.vec(\' assets/path/dog.svg\' )' ,
130
+ );
90
131
expect (
91
132
integration.isSupport (
92
133
AssetType (
93
134
rootPath: resPath,
94
135
path: 'assets/path/dog.svg' ,
95
136
flavors: {},
137
+ transformers: {},
96
138
),
97
139
),
98
140
isTrue,
@@ -103,6 +145,18 @@ void main() {
103
145
rootPath: resPath,
104
146
path: 'assets/path/dog.vec' ,
105
147
flavors: {},
148
+ transformers: {},
149
+ ),
150
+ ),
151
+ isTrue,
152
+ );
153
+ expect (
154
+ integration.isSupport (
155
+ AssetType (
156
+ rootPath: resPath,
157
+ path: 'assets/path/dog.svg' ,
158
+ flavors: {},
159
+ transformers: {'test' },
106
160
),
107
161
),
108
162
isTrue,
@@ -113,6 +167,7 @@ void main() {
113
167
rootPath: resPath,
114
168
path: 'assets/path/dog.png' ,
115
169
flavors: {},
170
+ transformers: {},
116
171
),
117
172
),
118
173
isFalse,
@@ -147,6 +202,7 @@ void main() {
147
202
rootPath: resPath,
148
203
path: 'assets/path' ,
149
204
flavors: {},
205
+ transformers: {},
150
206
),
151
207
),
152
208
'RiveGenImage(\' assets/path\' )' ,
@@ -157,6 +213,7 @@ void main() {
157
213
rootPath: resPath,
158
214
path: 'assets/path/dog.riv' ,
159
215
flavors: {},
216
+ transformers: {},
160
217
),
161
218
),
162
219
isTrue,
@@ -167,6 +224,7 @@ void main() {
167
224
rootPath: resPath,
168
225
path: 'assets/path/dog.json' ,
169
226
flavors: {},
227
+ transformers: {},
170
228
),
171
229
),
172
230
isFalse,
@@ -194,6 +252,7 @@ void main() {
194
252
rootPath: resPath,
195
253
path: 'assets/lottie' ,
196
254
flavors: {},
255
+ transformers: {},
197
256
),
198
257
),
199
258
'LottieGenImage(\' assets/lottie\' )' ,
@@ -204,6 +263,7 @@ void main() {
204
263
rootPath: resPath,
205
264
path: 'assets/lottie/hamburger_arrow.json' ,
206
265
flavors: {},
266
+ transformers: {},
207
267
),
208
268
),
209
269
isTrue,
@@ -214,6 +274,7 @@ void main() {
214
274
rootPath: resPath,
215
275
path: 'assets/lottie/hamburger_arrow_without_version.json' ,
216
276
flavors: {},
277
+ transformers: {},
217
278
),
218
279
),
219
280
isFalse,
0 commit comments