From 693b74eddf723625a6b28e67fbd583a7d09680fc Mon Sep 17 00:00:00 2001 From: ss Date: Tue, 11 Jul 2023 19:02:02 +0200 Subject: [PATCH] Fix code coverage for smtp-address-validator.cpp (#284) Fixes #283 --- src/smtp-address-validator.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/smtp-address-validator.cpp b/src/smtp-address-validator.cpp index 805f300..14dfae7 100644 --- a/src/smtp-address-validator.cpp +++ b/src/smtp-address-validator.cpp @@ -26,12 +26,8 @@ SOFTWARE. */ -#line 1 "smtp-address-validator.rl" #include "smtp-address-validator.hpp" -#line 110 "smtp-address-validator.rl" - -#line 7 "smtp-address-validator.cpp" static const signed char _address_actions[] = { 0, 1, 0, 1, 1, 0}; @@ -678,8 +674,6 @@ static const int address_error = 0; static const int address_en_main = 1; -#line 112 "smtp-address-validator.rl" - bool is_address(const char *p, const char *pe) { int cs = 0; @@ -688,14 +682,9 @@ bool is_address(const char *p, const char *pe) bool result = false; -#line 675 "smtp-address-validator.cpp" { cs = (int) address_start; } - -#line 124 "smtp-address-validator.rl" - -#line 680 "smtp-address-validator.cpp" { int _klen; unsigned int _trans = 0; @@ -775,22 +764,14 @@ bool is_address(const char *p, const char *pe) switch ((*(_acts))) { case 0: { { -#line 108 "smtp-address-validator.rl" result = true; } - -#line 762 "smtp-address-validator.cpp" - break; } case 1: { { -#line 108 "smtp-address-validator.rl" result = false; } - -#line 770 "smtp-address-validator.cpp" - break; } } @@ -811,8 +792,5 @@ bool is_address(const char *p, const char *pe) _out : { } } - -#line 125 "smtp-address-validator.rl" - return result; }