Happy holidays everyone! I've found Devel::Cover to be an exceptionally handy item, but don't think I entirely grasp what the term 'short-circuiting' actually means.
I hope this is a beginner-type question for beginners who are writing tests ;) My code (snip, for context): if ( ! $self->IN_TEST_MODE() && $self->ENABLE_REPLICATION() ) { my $schema = ISP::RADIUS::Storage::Replicated->connect( @{ $master } ); $schema->storage->connect_replicants( @{ $database_servers } ); return $schema; } my $schema = ISP::RADIUS::Storage->connect( @{ $master } ); #... return a single storage schema later if condition fails Devel::Cover, when running its cover utility as `cover -test` reports this as my condition: "not $self->IN_TEST_MODE and $self->ENABLE_REPLICATION", which I understand. What I don't grasp, is how this passes the "short-circuit" tests, but fails the other two tests. I know what I need to do to ensure that the condition has test coverage, but I'm confused as to what "short-circuit" is. Steve -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/