<gh_stars>10-100
# -*- 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))


# -*- 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))
# -*- coding: utf-8 -*- # come on :-)