INNER CODE UNIT · Dart
_namedArgsAndValues
felangel/mocktail · packages/mocktail/lib/src/_is_invocation.dart:37
static Iterable<String> _namedArgsAndValues(Invocation invocation) =>
invocation.namedArguments.keys.map(
(name) =>
'${_symbolToString(name)}: ${invocation.namedArguments[name]}',
);
// This will give is a mangled symbol in dart2js/aot with minification
// enabled, but it's safe to assume very few people will use the invocation
// matcher in a production test anyway due to noSuchMethod.
static String _symbolToString(Symbol symbol) {
return symbol.toString().split('"')[1];
}
final Invocation _invocation;
@override
Description describe(Description d) => _describeInvocation(d, _invocation);