ensureActionNamePermitted method
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},
);
}
}