thing,
such as unicode, which warranted tags, I'm not sure why it wouldn't warrant
it's own group of tests. Tests are the one are where I never worry about
overlap, efficiency, or having too many files. :)
--
Greg Sabino Mullane g...@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
pgpMKsTryIiUA.pgp
Description: PGP signature
On Tue, Feb 07, 2012 at 06:29:04PM -0800, Jeffrey Thalhammer wrote:
...
> which distribution provides the best example
...
> Perl::Critic compliance (any set of Policies will do).
I think Perl::Critic itself is a good example.
--
Greg Sabino Mullane g...@endpoint.com
End Point Corporati
000) {
cleanup_database($dbh,'test');
$dbh->disconnect;
plan skip_all => 'Cannot run asynchronous queries with pre-8.0 libraries.';
}
plan tests => 67;
===
--
Greg Sabino Mullane g...@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
pgpQHFicV5CPJ.pgp
Description: PGP signature
also nice as you can
simply call that test as part of 'make [dist]clean' :)
--
Greg Sabino Mullane g...@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
signature.asc
Description: OpenPGP digital signature
g it too
A better point, but if other developers want to learn from you, they
should be checking out your development environment, not just your
published product.
--
Greg Sabino Mullane g...@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
signature.asc
Description: OpenPGP digital signature
iable TEST_AUTHOR to enable
this test';
}
plan tests => 1;
I've also started moving the tests themselves from MANIFEST to MANIFEST.skip
--
Greg Sabino Mullane g...@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
signature.asc
Description: OpenPGP digital signature
t() function provides some time measurements and formats the $testmsg to
provide things like line numbers. caller is used twice because there are times
when I want to pass in a line number to is_deeply directly.)
--
Greg Sabino Mullane g...@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
signature.asc
Description: OpenPGP digital signature
ng shut down
at the end of the test, and thus that particular port could not be used by
other applications until the db was killed.
--
Greg Sabino Mullane [EMAIL PROTECTED]
End Point Corporation
signature.asc
Description: PGP signature
n (via initdb) first.
http://git.postgresql.org/?p=dbdpg.git;a=blob;f=trunk/t/dbdpg_test_setup.pl
--
Greg Sabino Mullane [EMAIL PROTECTED]
End Point Corporation
signature.asc
Description: PGP signature
any unapplied patches, and perhaps some other metrics
to indicate "maintainedness". Cross referencing that with popularity and
dependency chains would be a great triage system to start whipping CPAN
into shape.
--
Greg Sabino Mullane [EMAIL PROTECTED]
End Point Corporation
signature.asc
Description: PGP signature
one of Perl's biggest problems at the moment.
Careful attention and responsiveness to CPAN testers and to rt.cpan.org is
the best cure for this.
--
Greg Sabino Mullane [EMAIL PROTECTED]
End Point Corporation
signature.asc
Description: PGP signature
#x27;ve come across on CPAN lately that are popular yet
obviously unmaintained, with bug reports, questions, and unapplied patches
that linger in the RT queues for years. It would be nice if we had some
sort of system that tracked and reported on that.
--
Greg Sabino Mullane [EMAIL PROTECTED]
End Point Corporation
signature.asc
Description: PGP signature
istering
bit. Put that way, perhaps 29 reviews isn't so bad after all.
> There's a button marked favourite. It looks like a star. I press it.
Or perhaps just a generic one to five star point-n-click Amazon-like AJAXy
bit.
--
Greg Sabino Mullane [EMAIL PROTECTED]
End Point Corp
most important modules
ever, DBI, has a mere 29. That's 29 reviews in 8 years - pathetic. It
should have hundreds of ratings. The important question to ask is,
(assuming the ratings are something worth keeping), why are people not
rating modules, and how can we encourage people to do so?
--
Gre
t) Not
> likely.
So that begs the question, why not just go with option A? Seems plenty
big enough to me, and removes all ambiguity up front. Can someone provide
an example of a "lower case", non a-z, non Hungarian key that might
possibly be globally used? I can't think of one th
xed, but I've no idea what's causing the carpiness of the warning to
appear; DBD::Pg does not use Carp. Explanations, workarounds, or harsh
code reviews all welcome. This test does pass on other boxes, FWIW.
--
Greg Sabino Mullane [EMAIL PROTECTED]
End Point Corporation 610-983-9073
signature.asc
Description: PGP signature
itself. It also helps the reader see that the
subroutine expects a bunch of key/value pairs, not just a list:
foobar($alpha, $beta); ## List? Hash? Positions matter? Are they
related?
foobar({$alpha => $beta}); ## No ambiguity
> Well, if it's a Playstation 2 you're forgiven. :P
ly
generic name.
> * Why does count_tests() take a reference? A hash will
> do perfectly well.
You mean passing in the raw keys and values? Ick.
> * Lord I hate tabs.
Not touching that one. Instead, I'll just go on editing my BSD-licensed,
git controlled, Postgres application with tabs,
s and
other loops and codepaths. Not entirely sure what you mean by the first
question though - got an example?
--
Greg Sabino Mullane [EMAIL PROTECTED]
End Point Corporation 610-983-9073
signature.asc
Description: This is a digitally signed message part
is needed because Bucardo does a lot of forking which
confuses Test)
--
Greg Sabino Mullane [EMAIL PROTECTED]
End Point Corporation 610-983-9073
signature.asc
Description: This is a digitally signed message part
$bail_on_error and BAIL_OUT "Stopping on failed 'like' test";
} ## end of like
## etc. for all test methods you are using
}
## use critic
Sure would be nice if this was a Test::More option.
--
Greg Sabino Mullane [EMAIL PROTECTED]
End Point Corporation 610-983-9073
signature.asc
Description: This is a digitally signed message part
failures in 3, 4, and 5.
The ordering is a convenience to doing so, but ideally there would be
some way to interact with the testing program and do the right thing, so
that instead of BAILing out at 3, it bails out of the current test, sets
a flag, and then 4 and 5 can check for the flag a
and a lot of time overhead, so it's either the 00-99 or (as I sometimes
have done) one giant testing file.
--
Greg Sabino Mullane [EMAIL PROTECTED] [EMAIL PROTECTED]
End Point Corporation
signature.asc
Description: This is a digitally signed message part
23 matches
Mail list logo