Re: psql - improve test coverage from 41% to 88%

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: psql - improve test coverage from 41% to 88%
Дата
Msg-id alpine.DEB.2.21.1909120825030.19467@lancre
обсуждение исходный текст
Ответ на Re: psql - improve test coverage from 41% to 88%  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: psql - improve test coverage from 41% to 88%  (vignesh C <vignesh21@gmail.com>)
Список pgsql-hackers
> On Wed, Sep 11, 2019 at 10:52:01PM +0200, Fabien COELHO wrote:
>> AFAICR this is because the coverage was not the same:-) Some backslash
>> commands just skip silently to the end of the line, so that intermediate
>> \commands on the same line are not recognized/processed the same, so I moved
>> everything on one line to avoid this.
>
> I see.  So basically this tests for more code paths to ignore
> backslash commands and it improves the coverage of \elif.  Applied
> after fixing two nits:
> - Indentation was incorrect.
> - Moved the \elif test closer to the existing one for the false
> branch (you can grep #2 to find it).

Ok. Rebased version added, with some minor changes to improve readability 
(comments, variables).

-- 
Fabien.
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] [PATCH] pageinspect function to decode infomasks
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: [HACKERS] [PATCH] pageinspect function to decode infomasks