Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,6 @@ abstract class NetworkRequest

String get id;

@visibleForTesting
String get durationDisplay {
final duration = this.duration;
final text = duration != null
? durationText(duration, unit: DurationDisplayUnit.milliseconds)
: 'Pending';
return 'Duration: $text';
}

@override
bool matchesSearchToken(RegExp regExpSearch) {
return uri.caseInsensitiveContains(regExpSearch);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,15 +415,6 @@ void main() {
expect(httpWsHandshake.port, 56744);
});

test('durationDisplay returns correct value', () {
expect(httpGet.durationDisplay, 'Duration: 811.7 ms');
expect(httpGetWithError.durationDisplay, 'Duration: 2029.5 ms');
expect(httpPost.durationDisplay, 'Duration: 1508.0 ms');
expect(httpPut.durationDisplay, 'Duration: 1325.8 ms');
expect(httpPatch.durationDisplay, 'Duration: 1243.7 ms');
expect(httpWsHandshake.durationDisplay, 'Duration: 41.4 ms');
});

test('isValid returns correct value', () {
expect(httpGet.isValid, isTrue);
expect(httpGetWithError.isValid, isTrue);
Expand Down
Loading