Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 20db682ed1
Fetching contributors…

Cannot retrieve contributors at this time

111 lines (105 sloc) 3.145 kb
# -*- coding: utf-8 -*-
REDIS_COMMANDS = ('QUIT',
'AUTH',
'EXISTS',
'DELETE', # come on :-)
'TYPE',
'KEYS',
'RANDOMKEY',
'RENAME',
'RENAMENX',
'DBSIZE',
'EXPIRE',
'TTL',
'SELECT',
'MOVE',
'FLUSHDB',
'FLUSHALL',
'SET',
'GET',
'GETSET',
'MGET',
'SETNX',
'SETEX',
'MSET',
'MSETNX',
'INCR',
'INCRBY',
'DECR',
'DECRBY',
'APPEND',
'SUBSTR',
'RPUSH',
'LPUSH',
'LLEN',
'LRANGE',
'LTRIM',
'LINDEX',
'LSET',
'LREM',
'LPOP',
'RPOP',
'BLPOP',
'BRPOP',
'RPOPLPUSH',
'SADD',
'SREM',
'SPOP',
'SMOVE',
'SCARD',
'SISMEMBER',
'SINTER',
'SINTERSTORE',
'SUNION',
'SUNIONSTORE',
'SDIFF',
'SDIFFSTORE',
'SMEMBERS',
'SRANDMEMBER',
'ZADD',
'ZREM',
'ZINCRBY',
'ZRANK',
'ZREVRANK',
'ZRANGE',
'ZREVRANGE',
'ZRANGEBYSCORE',
'ZCARD',
'ZSCORE',
'ZREMRANGEBYRANK',
'ZREMRANGEBYSCORE',
'ZUNIONSTORE',
'ZINTERSTORE',
'HSET',
'HGET',
'HMSET',
'HINCRBY',
'HEXISTS',
'HDEL',
'HLEN',
'HKEYS',
'HVALS',
'HGETALL',
'SORT',
'SUBSCRIBE',
'UNSUBSCRIBE',
'PUBLISH',
'SAVE',
'BGSAVE',
'LASTSAVE',
'SHUTDOWN',
'BGREWRITEAOF',
'INFO',
'SLAVEOF',
'CONFIG')
from brukva import Client
covered_commands = set(c.upper() for c in dir(Client))
uncovered_commands = set(REDIS_COMMANDS).difference(covered_commands)
if __name__ == '__main__':
if not uncovered_commands:
exit(0)
print 'Uncovered commmands:'
for c in sorted(uncovered_commands):
print '\t%s' % c
print 'Commands to cover: %d' % len(uncovered_commands)
print 'Already covered: %d' % len(set(REDIS_COMMANDS).intersection(covered_commands))
Jump to Line
Something went wrong with that request. Please try again.