perl5 icon indicating copy to clipboard operation
perl5 copied to clipboard

More tests for new feature try

Open thibaultduponchelle opened this issue 4 years ago • 9 comments

Hello,

This is some more tests for the try/catch feature šŸ˜€

I tried to stress a bit the feature with some (kind of) real use cases (signal, eval, propagation).

thibaultduponchelle avatar Jun 16 '21 12:06 thibaultduponchelle

@leonerd 😃

thibaultduponchelle avatar Jul 02 '21 11:07 thibaultduponchelle

Hello,

This is some more tests for the try/catch feature grinning

I tried to stress a bit the feature with some (kind of) real use cases (signal, eval, propagation).

@leonerd, can you review this p.r.? I'm inclined to apply it within 7 days unless you indicate otherwise.

jkeenan avatar Mar 02 '22 13:03 jkeenan

@thibaultduponchelle , could you update your pull request based on the feedback ^^ from @leonerd and @haarg ? Thanks.

jkeenan avatar Mar 02 '22 14:03 jkeenan

Thank you @leonerd and @haarg for the review (and thank you @jkeenan). I updated according to the remarks šŸ‘šŸ¼

thibaultduponchelle avatar Mar 03 '22 14:03 thibaultduponchelle

Thank you @leonerd and @haarg for the review (and thank you @jkeenan). I updated according to the remarks šŸ‘šŸ¼

@leonerd and @haarg, can you review the contributor's most recent changes in this pull request? Thanks.

jkeenan avatar Jul 03 '22 18:07 jkeenan

Overall no huge objection, though in parts I'm unsure quite the value being added by the tests. While "more tests are always good", there gets to a point where we're just testing many minor variations on the same idea, which of course adds size and time.

The signal one at the end, in particular, doesn't actually test signal propagation through a try boundary, only entirely within on.

leonerd avatar Jul 05 '22 09:07 leonerd

The signal one at the end, in particular, doesn't actually test signal propagation through a try boundary, only entirely within on.

@thibaultduponchelle, can you respond to this point raised by @leonerd ?

Thank you very much. Jim Keenan

jkeenan avatar Sep 16 '22 22:09 jkeenan

@jkeenan I’m going to do the change šŸ‘šŸ¼

thibaultduponchelle avatar Sep 17 '22 22:09 thibaultduponchelle

@jkeenan @leonerd I moved SIGINT handler out of try {} block and added an outer and inner block to make it clearer that correct catch is reached.

thibaultduponchelle avatar Sep 19 '22 13:09 thibaultduponchelle