[TOOLS][TESTS] Add coverage ignore tag to autogenerated code

This commit is contained in:
Hugo Sales 2021-05-05 15:56:03 +00:00
parent de0c35d5a6
commit 10c79bcafe
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -78,9 +78,11 @@ foreach ($files as $file) {
$end = '// }}} Autocode'; $end = '// }}} Autocode';
$code = " $code = "
{$begin} {$begin}
// @codeCoverageIgnoreStart
{$fields_code} {$fields_code}
{$methods_code} {$methods_code}
// @codeCoverageIgnoreEnd
{$end}"; {$end}";
foreach (['/\\//' => '\\/', '/ /' => '\\ '] as $from => $to) { foreach (['/\\//' => '\\/', '/ /' => '\\ '] as $from => $to) {