"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "t/stats.t" between
memcached-1.6.8.tar.gz and memcached-1.6.9.tar.gz

About: memcached is a high-performance, distributed memory object caching system, generic in nature, but originally intended for use in speeding up dynamic web applications by alleviating database load.

stats.t  (memcached-1.6.8):stats.t  (memcached-1.6.9)
skipping to change at line 29 skipping to change at line 29
## see doc/protocol.txt for others ## see doc/protocol.txt for others
# note that auth stats are tested in auth specific tests # note that auth stats are tested in auth specific tests
my $stats = mem_stats($sock); my $stats = mem_stats($sock);
# Test number of keys # Test number of keys
if (MemcachedTest::enabled_tls_testing()) { if (MemcachedTest::enabled_tls_testing()) {
# when TLS is enabled, stats contains additional keys: # when TLS is enabled, stats contains additional keys:
# - ssl_handshake_errors # - ssl_handshake_errors
# - time_since_server_cert_refresh # - time_since_server_cert_refresh
is(scalar(keys(%$stats)), 80, "expected count of stats values"); is(scalar(keys(%$stats)), 82, "expected count of stats values");
} else { } else {
is(scalar(keys(%$stats)), 78, "expected count of stats values"); is(scalar(keys(%$stats)), 80, "expected count of stats values");
} }
# Test initial state # Test initial state
foreach my $key (qw(curr_items total_items bytes cmd_get cmd_set get_hits evicti ons get_misses get_expired foreach my $key (qw(curr_items total_items bytes cmd_get cmd_set get_hits evicti ons get_misses get_expired
bytes_written delete_hits delete_misses incr_hits incr_misses d ecr_hits get_flushed bytes_written delete_hits delete_misses incr_hits incr_misses d ecr_hits get_flushed
decr_misses listen_disabled_num lrutail_reflocked time_in_liste n_disabled_us)) { decr_misses listen_disabled_num lrutail_reflocked time_in_liste n_disabled_us)) {
is($stats->{$key}, 0, "initial $key is zero"); is($stats->{$key}, 0, "initial $key is zero");
} }
is($stats->{accepting_conns}, 1, "initial accepting_conns is one"); is($stats->{accepting_conns}, 1, "initial accepting_conns is one");
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)