ensureActionNamePermitted method

void ensureActionNamePermitted(
  1. String name
)

Implementation

void ensureActionNamePermitted(String name) {
  if (!permissions.actions.contains(name) ||
      !capabilities.actions.contains(name)) {
    throw TestExecutionError(
      code: TestExecutionErrorCode.permissionDenied,
      message: 'Not permitted to run "$name".',
      details: {'action': name},
    );
  }
}