EvalServer/Language/Python.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
evaluate
2.0
CRAP 2.0
1 package App::EvalServer::Language::Python;
2 BEGIN {
3 $App::EvalServer::Language::Python::AUTHORITY = 'cpan:HINRIK';
4 }
5 BEGIN {
6 $App::EvalServer::Language::Python::VERSION = '0.08';
7 }
8  
9 use strict;
10 use warnings;
11 use Inline::Python qw<py_eval>;
12  
13 sub evaluate {
14 my ($package, $code) = @_;
15 return py_eval($code, 2);
16 }
17  
18 1;
19  
20 =encoding utf8
21  
22 =head1 NAME
23  
24 App::EvalServer::Language::Python - Evaluate Python code
25  
26 =head1 AUTHOR
27  
28 Hinrik E<Ouml>rn SigurE<eth>sson, hinrik.sig@gmail.com
29  
30 =head1 LICENSE AND COPYRIGHT
31  
32 Copyright 2010 Hinrik E<Ouml>rn SigurE<eth>sson
33  
34 This program is free software, you can redistribute it and/or modify
35 it under the same terms as Perl itself.
36  
37 =cut