1use Test::More; 2use Test::Exception; 3use Search::Elasticsearch; 4 5do './t/lib/LogCallback.pl' or die( $@ || $! ); 6our $format; 7 8ok my $e 9 = Search::Elasticsearch->new( nodes => 'https://foo.bar:444/some/path' ), 10 'Client'; 11 12isa_ok my $l = $e->logger, 'Search::Elasticsearch::Logger::LogAny', 'Logger'; 13my $c = $e->transport->cxn_pool->cxns->[0]; 14ok $c->does('Search::Elasticsearch::Role::Cxn'), 15 'Does Search::Elasticsearch::Role::Cxn'; 16 17ok $l->trace_comment("The quick fox\njumped"), 'Comment'; 18 19is $format, <<"COMMENT", 'Comment - format'; 20# *** The quick fox 21# *** jumped 22COMMENT 23 24done_testing; 25 26