Open
Description
I am using laravel's Bus batch to dispatch jobs, and they use closures that get serialized and un-serialized
https://laravel.com/docs/11.x/queues#dispatching-batches
public function then($callback)
{
$this->options['then'][] = $callback instanceof Closure
? new SerializableClosure($callback)
: $callback;
return $this;
}
This results in the code coverage marking the then closure as not covered. Is there any workaround to cover such code blocks that get serialized and un-serialized and then are executed?
Metadata
Metadata
Assignees
Labels
No labels