This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
{ | |
package Ndn::Widget; | |
sub fob_id { '1' } | |
sub Fob { | |
my $self = shift; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub foo(&) { | |
my $code = shift; | |
my @got = $code->(); | |
die "codeblock returned stuff, it should not" if @got; | |
} | |
sub blah { | |
return 1 if defined wantarray; | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t/external/ocsp.t ................. # tcp connect to www.microsoft.com:443 ok | |
# fingerprint matches | |
# validation with default CA w/o OCSP ok | |
t/external/ocsp.t ................. 1/3 | |
# Failed test 'did not get expected OCSP response with stapling' | |
# at t/external/ocsp.t line 93. | |
# tcp connect to www.spiegel.de:443 ok | |
# fingerprint matches | |
# validation with default CA w/o OCSP ok | |
# validation with default CA with OCSP defaults ok |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Test2::Bundle::Extended; | |
use Test2::Tools::AsyncSubtest qw/fork_subtest/; | |
use Test2::API qw/test2_stack/; | |
# This is a custom event meant to transport our data. | |
{ | |
package Test2::Event::MyData; | |
use base 'Test2::Event'; | |
use Test2::Util::HashBase qw/mydata/; | |
sub no_display { 1 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./miniperl -Ilib make_ext.pl lib/auto/Time/HiRes/HiRes.so MAKE="make" LIBPERL_A=libperl.a LINKTYPE=dynamic | |
Makefile.PL: The "xdefine" exists, skipping the configure step. | |
("/home/exodist/projects/perl/miniperl Makefile.PL --configure" to force the configure step) | |
Warning: No Makefile! | |
make[1]: Entering directory '/home/exodist/projects/perl/dist/Time-HiRes' | |
make[1]: *** No rule to make target 'all'. Stop. | |
make[1]: Leaving directory '/home/exodist/projects/perl/dist/Time-HiRes' | |
make[1]: Entering directory '/home/exodist/projects/perl/dist/Time-HiRes' | |
make[1]: *** No rule to make target 'all'. Stop. | |
make[1]: Leaving directory '/home/exodist/projects/perl/dist/Time-HiRes' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (my $file = readdir($PSGI_DIR)) { | |
next if $file eq 'dev_dev.psgi'; | |
next if $file =~ m/mock/i; | |
next unless $file =~ m/^(.*)_dev\.psgi$/; | |
my $name = $1; | |
local $@; | |
$APPS{$name} = eval "package $name; do '$PATH/$file'" | |
or print STDERR "Failed to load $file: $@"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Test2::Bundle::Extended; | |
subtest foo => sub { | |
ok(1); | |
subtest bar => sub { | |
ok(1); | |
subtest baz => sub { | |
ok(1); | |
bail_out "xx"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Test::More; | |
use Test2::API qw/context/; | |
my @tasks; | |
sub enqueue(&) { | |
my $ctx = context(); # Gets the context created by 'is_later' | |
# Snapshot is safe to pass around, unlike the actual context. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package DepTracer; | |
use strict; | |
use warnings; | |
use Object::HashBase qw/ | |
-_on | |
-exclude | |
-dep_map | |
-loaded | |
-my_require |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub format_stamp { | |
my $stamp = shift; | |
return undef unless $stamp; | |
my $out = DateTime->from_epoch(epoch => $stamp)->stringify; | |
$out .= $1 if sprintf("%.10f", $stamp) =~ m/(\.\d+)$/; | |
return $out; | |
} |