verifyLiveRouting static method

LiveParityResult verifyLiveRouting(
  1. Map<String, dynamic> sent,
  2. Map<String, dynamic> resolved
)

Compare the /sdk/links payload we sent against the /sdk/resolve response the deployed edge returns for the created short link.

Implementation

static LiveParityResult verifyLiveRouting(
  Map<String, dynamic> sent,
  Map<String, dynamic> resolved,
) {
  final checks = liveRoutingFields
      .map((field) => LiveCheck(field, _norm(sent[field]), _norm(resolved[field])))
      .toList();
  return LiveParityResult(checks);
}