Psh/Builtins/Setenv.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 CC 2 SCAR 13.9
CC
2
Cov
0%
bi_setenv
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 package Psh::Builtins::Setenv;
2  
3 require Psh::Support::Env;
4 require Psh::Util;
5  
6 =item * C<setenv NAME [=] VALUE>
7  
8 Sets the environment variable NAME to VALUE.
9  
10 =cut
11  
12 sub bi_setenv
13 {
14 my $var = Psh::Support::Env::do_setenv(@_);
15 if (!$var) {
16 Psh::Util::print_error_i18n('usage_setenv');
17 return (0,undef);
18 }
19 return (1,undef);
20 }
21  
22  
23 1;