Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace InternetAddressType.ANY with InternetAddressType.any #1326

Merged
merged 1 commit into from
Mar 24, 2022
Merged
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
2 changes: 1 addition & 1 deletion LibTest/io/InternetAddress/lookup_A01_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @dart = 2.9

/// @assertion Future<List<InternetAddress>> lookup(String host,
/// { InternetAddressType type: InternetAddressType.ANY })
/// { InternetAddressType type: InternetAddressType.any })
/// Lookup a host, returning a [Future] of a list of [InternetAddresss].
/// @description Checks that result [internetAddress] list contains addresses for
/// the given host only.
Expand Down
4 changes: 2 additions & 2 deletions LibTest/io/InternetAddress/lookup_A02_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// @dart = 2.9

/// @assertion Future<List<InternetAddress>> lookup(String host,
/// { InternetAddressType type: InternetAddressType.ANY })
/// If [type] is [InternetAddressType.ANY], it will lookup both IP version 4
/// { InternetAddressType type: InternetAddressType.any })
/// If [type] is [InternetAddressType.any], it will lookup both IP version 4
/// (IPv4) and IP version 6 (IPv6) addresses.
/// @description Checks that created [Future] can contain both IPv4 and IPv6
/// @author [email protected]
Expand Down
8 changes: 4 additions & 4 deletions LibTest/io/InternetAddress/lookup_A02_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// @dart = 2.9

/// @assertion Future<List<InternetAddress>> lookup(String host,
/// { InternetAddressType type: InternetAddressType.ANY })
/// If [type] is [InternetAddressType.ANY], it will lookup both IP version 4
/// { InternetAddressType type: InternetAddressType.any })
/// If [type] is [InternetAddressType.any], it will lookup both IP version 4
/// (IPv4) and IP version 6 (IPv6) addresses.
/// @description Checks that created [Future] contains IPv4 and IPv6 addresses
/// and each address string corresponds type of [InternetAddress] object.
/// [InternetAddressType.ANY].
/// [InternetAddressType.any].
/// @author [email protected]


Expand All @@ -23,7 +23,7 @@ RegExp ipv6 = new RegExp(r'^::|^::1|^([a-fA-F0-9]{1,4}::?){1,7}([a-fA-F0-9]{1,4}

check(String name) {
Future<List<InternetAddress>> list =
InternetAddress.lookup(name, type: InternetAddressType.ANY);
InternetAddress.lookup(name, type: InternetAddressType.any);

list.then((addresses) {
addresses.forEach((InternetAddress addr) {
Expand Down
2 changes: 1 addition & 1 deletion LibTest/io/InternetAddress/lookup_A03_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @dart = 2.9

/// @assertion Future<List<InternetAddress>> lookup(String host,
/// { InternetAddressType type: InternetAddressType.ANY })
/// { InternetAddressType type: InternetAddressType.any })
/// If type is either [InternetAddressType.IPv4] or [InternetAddressType.IPv6]
/// it will only lookup addresses of the specified type.
/// @description Checks that if type is set to [InternetAddressType.IPv6] result
Expand Down
2 changes: 1 addition & 1 deletion LibTest/io/InternetAddress/lookup_A03_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @dart = 2.9

/// @assertion Future<List<InternetAddress>> lookup(String host,
/// { InternetAddressType type: InternetAddressType.ANY })
/// { InternetAddressType type: InternetAddressType.any })
/// If type is either [InternetAddressType.IPv4] or [InternetAddressType.IPv6]
/// it will only lookup addresses of the specified type.
/// @description Checks that if type is set to [InternetAddressType.IPv6] result
Expand Down
2 changes: 1 addition & 1 deletion LibTest/io/InternetAddress/lookup_A03_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @dart = 2.9

/// @assertion Future<List<InternetAddress>> lookup(String host,
/// { InternetAddressType type: InternetAddressType.ANY })
/// { InternetAddressType type: InternetAddressType.any })
/// If type is either [InternetAddressType.IPv4] or [InternetAddressType.IPv6]
/// it will only lookup addresses of the specified type.
/// @description Checks that if type is set to [InternetAddressType.IPv4] result
Expand Down
2 changes: 1 addition & 1 deletion LibTest/io/InternetAddress/lookup_A03_t04.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @dart = 2.9

/// @assertion Future<List<InternetAddress>> lookup(String host,
/// { InternetAddressType type: InternetAddressType.ANY })
/// { InternetAddressType type: InternetAddressType.any })
/// If type is either [InternetAddressType.IPv4] or [InternetAddressType.IPv6]
/// it will only lookup addresses of the specified type.
/// @description Checks that if type is set to [InternetAddressType.IPv4] result
Expand Down
2 changes: 1 addition & 1 deletion LibTest/io/InternetAddress/lookup_A04_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @dart = 2.9

/// @assertion Future<List<InternetAddress>> lookup(String host,
/// { InternetAddressType type: InternetAddressType.ANY })
/// { InternetAddressType type: InternetAddressType.any })
/// Lookup a host, returning a [Future] of a list of [InternetAddresss].
/// @description Checks that exception is thrown if such a host does not exist.
/// @author [email protected]
Expand Down
2 changes: 1 addition & 1 deletion LibTest/io/NetworkInterface/list_A01_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// Future<List<NetworkInterface>> list({
/// bool includeLoopback: false,
/// bool includeLinkLocal: false,
/// InternetAddressType type: InternetAddressType.ANY
/// InternetAddressType type: InternetAddressType.any
/// })
/// Query the system for NetworkInterfaces.
///
Expand Down
2 changes: 1 addition & 1 deletion LibTest/io/NetworkInterface/list_A01_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// Future<List<NetworkInterface>> list({
/// bool includeLoopback: false,
/// bool includeLinkLocal: false,
/// InternetAddressType type: InternetAddressType.ANY
/// InternetAddressType type: InternetAddressType.any
/// })
/// Query the system for NetworkInterfaces.
///
Expand Down
2 changes: 1 addition & 1 deletion LibTest/io/NetworkInterface/list_A01_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// Future<List<NetworkInterface>> list({
/// bool includeLoopback: false,
/// bool includeLinkLocal: false,
/// InternetAddressType type: InternetAddressType.ANY
/// InternetAddressType type: InternetAddressType.any
/// })
/// Query the system for NetworkInterfaces.
///
Expand Down
6 changes: 3 additions & 3 deletions LibTest/io/NetworkInterface/list_A02_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
/// Future<List<NetworkInterface>> list({
/// bool includeLoopback: false,
/// bool includeLinkLocal: false,
/// InternetAddressType type: InternetAddressType.ANY
/// InternetAddressType type: InternetAddressType.any
/// })
/// Query the system for NetworkInterfaces.
/// ...
/// If type is either InternetAddressType.IPv4 or InternetAddressType.IPv6 it
/// will only lookup addresses of the specified type. Default is
/// InternetAddressType.ANY.
/// InternetAddressType.any.
///
/// @description Checks that if parameter 'type' of static method [list] is
/// InternetAddressType.ANY, addresses of InternetAddressType.IPv4 type and
/// InternetAddressType.any, addresses of InternetAddressType.IPv4 type and
/// InternetAddressType.IPv6 type are lookup.
/// @author [email protected]

Expand Down
4 changes: 2 additions & 2 deletions LibTest/io/NetworkInterface/list_A02_t02.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
/// Future<List<NetworkInterface>> list({
/// bool includeLoopback: false,
/// bool includeLinkLocal: false,
/// InternetAddressType type: InternetAddressType.ANY
/// InternetAddressType type: InternetAddressType.any
/// })
/// Query the system for NetworkInterfaces.
/// ...
/// If type is either InternetAddressType.IPv4 or InternetAddressType.IPv6 it
/// will only lookup addresses of the specified type. Default is
/// InternetAddressType.ANY.
/// InternetAddressType.any.
///
/// @description Checks that if parameter 'type' of static method [list] is
/// InternetAddressType.IPv4, only addresses of InternetAddressType.IPv4 type
Expand Down
4 changes: 2 additions & 2 deletions LibTest/io/NetworkInterface/list_A02_t03.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
/// Future<List<NetworkInterface>> list({
/// bool includeLoopback: false,
/// bool includeLinkLocal: false,
/// InternetAddressType type: InternetAddressType.ANY
/// InternetAddressType type: InternetAddressType.any
/// })
/// Query the system for NetworkInterfaces.
/// ...
/// If type is either InternetAddressType.IPv4 or InternetAddressType.IPv6 it
/// will only lookup addresses of the specified type. Default is
/// InternetAddressType.ANY.
/// InternetAddressType.any.
///
/// @description Checks that if parameter 'type' of static method [list] is
/// InternetAddressType.IPv6, only addresses of InternetAddressType.IPv6 type
Expand Down