@@ -132,7 +132,10 @@ void main() {
132
132
expect (profile.length, numRequests);
133
133
134
134
expect (controller.matchesForSearch ('jsonplaceholder' ).length, equals (5 ));
135
- expect (controller.matchesForSearch ('IPv6' ).length, equals (2 ));
135
+ expect (
136
+ controller.matchesForSearch ('2606:4700:3037::ac43' ).length,
137
+ equals (2 ),
138
+ );
136
139
expect (controller.matchesForSearch ('' ).length, equals (0 ));
137
140
138
141
// Search with incorrect case.
@@ -155,7 +158,7 @@ void main() {
155
158
expect (matches.length, equals (5 ));
156
159
verifyIsSearchMatch (profile, matches);
157
160
158
- controller.search = 'IPv6 ' ;
161
+ controller.search = '2606:4700:3037::ac43 ' ;
159
162
matches = controller.searchMatches.value;
160
163
expect (matches.length, equals (2 ));
161
164
verifyIsSearchMatch (profile, matches);
@@ -184,7 +187,11 @@ void main() {
184
187
185
188
controller.setActiveFilter (query: 'method:get' );
186
189
expect (profile, hasLength (numRequests));
187
- expect (controller.filteredData.value, hasLength (6 ));
190
+ expect (controller.filteredData.value, hasLength (4 ));
191
+
192
+ controller.setActiveFilter (query: 'method:socket' );
193
+ expect (profile, hasLength (numRequests));
194
+ expect (controller.filteredData.value, hasLength (2 ));
188
195
189
196
controller.setActiveFilter (query: 'm:put' );
190
197
expect (profile, hasLength (numRequests));
@@ -200,7 +207,7 @@ void main() {
200
207
201
208
controller.setActiveFilter (query: 's:101' );
202
209
expect (profile, hasLength (numRequests));
203
- expect (controller.filteredData.value, hasLength (3 ));
210
+ expect (controller.filteredData.value, hasLength (1 ));
204
211
205
212
controller.setActiveFilter (query: '-s:Error' );
206
213
expect (profile, hasLength (numRequests));
@@ -210,11 +217,11 @@ void main() {
210
217
expect (profile, hasLength (numRequests));
211
218
expect (controller.filteredData.value, hasLength (4 ));
212
219
213
- controller.setActiveFilter (query: 't:ws ' );
220
+ controller.setActiveFilter (query: 't:tcp ' );
214
221
expect (profile, hasLength (numRequests));
215
222
expect (controller.filteredData.value, hasLength (2 ));
216
223
217
- controller.setActiveFilter (query: '-t:ws ' );
224
+ controller.setActiveFilter (query: '-t:tcp ' );
218
225
expect (profile, hasLength (numRequests));
219
226
expect (controller.filteredData.value, hasLength (7 ));
220
227
@@ -234,17 +241,17 @@ void main() {
234
241
expect (profile, hasLength (numRequests));
235
242
expect (controller.filteredData.value, hasLength (numRequests));
236
243
237
- controller.setActiveFilter (query: '-t:ws ,http' );
244
+ controller.setActiveFilter (query: '-t:tcp ,http' );
238
245
expect (profile, hasLength (numRequests));
239
246
expect (controller.filteredData.value, hasLength (4 ));
240
247
241
- controller.setActiveFilter (query: '-t:ws ,http method:put' );
248
+ controller.setActiveFilter (query: '-t:tcp ,http method:put' );
242
249
expect (profile, hasLength (numRequests));
243
250
expect (controller.filteredData.value, hasLength (1 ));
244
251
245
252
controller.setActiveFilter (query: '-status:error method:get' );
246
253
expect (profile, hasLength (numRequests));
247
- expect (controller.filteredData.value, hasLength (5 ));
254
+ expect (controller.filteredData.value, hasLength (3 ));
248
255
249
256
controller.setActiveFilter (query: '-status:error method:get t:http' );
250
257
expect (profile, hasLength (numRequests));
0 commit comments