Visitar URL original
Dump the source bytes if incorrect UTF-8 sequences are present by blasten · Pull Request #19 · flutter/packages · GitHub
Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Add type arguments for generic function
  • Loading branch information
blasten committed May 1, 2019
commit 9158dc160848c9e90f9155c8fbe817015266320e
3 changes: 1 addition & 2 deletions packages/multicast_dns/test/decode_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ void testBadPackages() {
test('Dumps the source bytes if incorrect UTF-8 sequences are present', () {
expect(
() => readFQDN(packetWithInvalidUtf8),
throwsA(predicate((error) =>
error is MDnsDecodeException &&
throwsA(predicate<MDnsDecodeException>((MDnsDecodeException error) =>
error
.toString()
.contains('https://github.com/flutter/flutter/issues/31854') &&
Expand Down