File: 02_server.t

package info (click to toggle)
libjson-rpc-perl 1.06-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292 kB
  • sloc: perl: 1,095; makefile: 587
file content (29 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use Test::More;
use strict;
BEGIN { plan tests => 4 };

use JSON::RPC::Legacy::Server;

my $server = JSON::RPC::Legacy::Server->new;

isa_ok($server, 'JSON::RPC::Legacy::Server');

isa_ok($server->json, 'JSON');

my $test = JSON::RPC::Legacy::Server::Test->new;

isa_ok($test, 'JSON::RPC::Legacy::Server');

isa_ok($test->json, 'DummyJSONCoder');


####

package JSON::RPC::Legacy::Server::Test;

use base qw(JSON::RPC::Legacy::Server);


sub create_json_coder {
    bless {}, 'DummyJSONCoder';
}