isIntegrationWorkloadStarted static method

bool isIntegrationWorkloadStarted(
  1. String line
)

Implementation

static bool isIntegrationWorkloadStarted(String line) {
  final marker = line.indexOf(ensembleTestProgressProtocolPrefix);
  if (marker < 0) return false;
  try {
    final raw =
        line.substring(marker + ensembleTestProgressProtocolPrefix.length);
    final decoded = json.decode(_jsonRecordFromLine(raw));
    return decoded is Map && decoded['status'] == 'running';
  } catch (_) {
    return false;
  }
}