For a while, people have been requesting runnable code for the apps in my book. It has actually been available for a while, but apparently doesn't show up in Google results. It's because there is book called "Catalyst Code" that obscures results for the logical catalyst book code queries. Amusing. Anyway, every application (in runnable form) is available here: http://jrock.us/Catalyst-Book-Code-
NAME Test::Exception - Test exception-based code SYNOPSIS use Test::More tests => 5; use Test::Exception; # or if you don't need Test::More use Test::Exception tests => 5; # then... # Check that the stringified exception matches given regex throws_ok { $foo->method } qr/division by zero/, 'zero caught okay'; # Check an exception of the given class (or subclass) is thrown throws_ok { $foo->method }
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く