Re: psql - improve test coverage from 41% to 88%
От
vignesh C
Тема
Re: psql - improve test coverage from 41% to 88%
Дата
Msg-id
CALDaNm0Z_ntaxCc-prkdYFzgDPYjmxcTxxX2pDeOUZX_hBFD2Q@mail.gmail.com
Ответ на
Re: psql - improve test coverage from 41% to 88% (Fabien COELHO)
Список
Дерево обсуждения
psql - improve test coverage from 41% to 88% Fabien COELHO <coelho@cri.ensmp.fr>
Re: psql - improve test coverage from 41% to 88% Fabien COELHO <coelho@cri.ensmp.fr>
Re: psql - improve test coverage from 41% to 88% Michael Paquier <michael@paquier.xyz>
Re: psql - improve test coverage from 41% to 88% Fabien COELHO <coelho@cri.ensmp.fr>
Re: psql - improve test coverage from 41% to 88% Michael Paquier <michael@paquier.xyz>
Re: psql - improve test coverage from 41% to 88% Fabien COELHO <coelho@cri.ensmp.fr>
Re: psql - improve test coverage from 41% to 88% vignesh C <vignesh21@gmail.com>
Re: psql - improve test coverage from 41% to 88% Fabien COELHO <coelho@cri.ensmp.fr>
Re: psql - improve test coverage from 41% to 88% vignesh C <vignesh21@gmail.com>
Re: psql - improve test coverage from 41% to 88% Fabien COELHO <coelho@cri.ensmp.fr>
Re: psql - improve test coverage from 41% to 88% Alvaro Herrera <alvherre@2ndquadrant.com>
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>
Re: psql - improve test coverage from 41% to 88% Michael Paquier <michael@paquier.xyz>
Re: psql - improve test coverage from 41% to 88% Fabien COELHO <coelho@cri.ensmp.fr>
Re: psql - improve test coverage from 41% to 88% Michael Paquier <michael@paquier.xyz>
Re: psql - improve test coverage from 41% to 88% David Steele <david@pgmasters.net>
Re: psql - improve test coverage from 41% to 88% Daniel Gustafsson <daniel@yesql.se>
Re: psql - improve test coverage from 41% to 88% Daniel Gustafsson <daniel@yesql.se>
Re: psql - improve test coverage from 41% to 88% Fabien COELHO <coelho@cri.ensmp.fr>
Re: psql - improve test coverage from 41% to 88% Daniel Gustafsson <daniel@yesql.se>
Re: psql - improve test coverage from 41% to 88% Tom Lane <tgl@sss.pgh.pa.us>
Re: psql - improve test coverage from 41% to 88% Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: psql - improve test coverage from 41% to 88% Michael Paquier <michael@paquier.xyz>
Re: psql - improve test coverage from 41% to 88% Fabien COELHO <coelho@cri.ensmp.fr>
Re: psql - improve test coverage from 41% to 88% Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
On Thu, Sep 12, 2019 at 2:15 PM Fabien COELHO wrote:
>
>
> >> Ok. Rebased version added, with some minor changes to improve readability
> >> (comments, variables).
> >
> > Few comments: [...]
> >
> > Commented line can be removed
> > Commented lines can be removed
> > ??? can be changed to some suitable heading
> > tab-complation to be changed to tab-completion
> > Commented lines can be removed, some more are present below these lines also.
>
> Thanks for this review.
>
> The lines were really tests I did that had some issues because of the way
> the Expect module works, and are not useful for inclusion in the code
> base.
>
> Here is a v5.
Few more in icommand_checks subroutine:
+
+ #$ps->slave->stty(qw(raw -echo));
+ $ps->slave->stty(qw(raw));
+ my $n = 0;
+ for my $test (@$inout)
+ {
+ #warn "test: @$test";
+ my ($in, @out) = @$test;
+ $n++;
+ #warn "in: $in";
+ #warn "out: @out";
+ $ps->send($in);
Few unwanted code can be removed.
Regards,
Vignesh
EnterpriseDB: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления
От: Michael Paquier
Дата: