Perlã®ãã¹ããä½ã£ã¦ããã¨ããããã¡ã½ããã§å¼ã°ãã¦ããé¢æ°ãéªéãªã®ã§ãä»»æã®å¤ãè¿ããããªã¢ãã¯ã«ãããå ´åã éªéãªé¢æ° ï¼ ä¾ãã°ããã®é¢æ°ã¯ãããã¯ã¼ã¯ã¢ã¯ã¹ãå¿ è¦ã¨ããDBã¢ã¯ã»ã¹ãã¦ãç¹å®ã®ãã¼ã¿ã»ãããå¿ è¦ã¨ãã package TestTargetXXX; use Some::Module qw(getIDfromDB); sub sample_func { my $self = shift; my %param = @_; my $id = &getIDfromDB($param{key}); # (ç¥) return $key_code; } subtest "sample_func test." => sub { my $obj = TestTargetXXX->new(); %param = (key => 'XXX'); $rtn = $obj->sampe
{{#tags}}- {{label}}
{{/tags}}