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
|
# tests for functions documented in memcached_set.pod
use strict;
use warnings;
use Test::More;
use Memcached::libmemcached
# functions explicitly tested by this file
qw(
memcached_set_by_key
),
# other functions used by the tests
qw(
memcached_server_add
memcached_create
memcached_free
);
use lib 't/lib';
use libmemcached_test;
my $m1= 'master-key';
my $memc = libmemcached_test_create();
plan tests => 1;
ok memcached_set_by_key($memc, $m1, 'abc', "this is a test");
|