problems property
Problems that disqualify the adapter for the scenario: replay did not return what capture returned, a divergence occurred, or nothing was recorded.
Implementation
List<String> get problems => [
if (events.isEmpty) 'the scenario recorded no interaction events',
if (dependencies.isEmpty) 'no manifest dependency was produced',
if (canonicalJson(captured) != canonicalJson(replayed))
'replay returned ${jsonEncode(replayed)}, capture returned ${jsonEncode(captured)}',
for (final d in divergences) 'divergence ${d.type}: ${d.detail}',
];