diff options
author | dakkar <dakkar@luxion> | 2008-12-29 11:41:31 +0000 |
---|---|---|
committer | dakkar <dakkar@luxion> | 2008-12-29 11:41:31 +0000 |
commit | f000aa6898806ef97e9e555625428197fabc2c58 (patch) | |
tree | 78b9003d2b0b7d523c3bd40f49188ebeb55d8201 /t/fcp-01.t | |
parent | forse i feed funzionano… non testato (diff) | |
download | WebCoso-f000aa6898806ef97e9e555625428197fabc2c58.tar.gz WebCoso-f000aa6898806ef97e9e555625428197fabc2c58.tar.bz2 WebCoso-f000aa6898806ef97e9e555625428197fabc2c58.zip |
fallback for die-ing writers: use the parser
git-svn-id: svn://luxion/repos/WebCoso/trunk@395 fcb26f47-9200-0410-b104-b98ab5b095f3
Diffstat (limited to 't/fcp-01.t')
-rw-r--r-- | t/fcp-01.t | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -111,8 +111,17 @@ is($calls{rstuff},1,'called reader'); is($fc->get($wr_file->stringify), 'bad', 'parsed after put'); + +$fc->add_writer(qr{\.stuff$} => sub { die 'bad call' }); +$wr_contents='buh'; +$fc->put($wr_file->stringify,$wr_contents); +is($calls{rstuff},2,'called reader on writer exception'); +is($fc->get($wr_file->stringify), + 'bad', + 'parsed after put with writer exception'); } + is($fc->get('nosuchfile'),undef,'return undef on non-existant files'); { |