cunla / fakeredis-py

Implementation of Redis in python without having a Redis server running. Fully compatible with using redis-py.
https://fakeredis.moransoftware.ca/
BSD 3-Clause "New" or "Revised" License
299 stars 49 forks source link

ACL commands #338

Open cunla opened 1 month ago

cunla commented 1 month ago
github-actions[bot] commented 3 weeks ago

Coverage report:

Name                                                    Stmts   Miss Branch BrPart  Cover
-----------------------------------------------------------------------------------------
fakeredis/__init__.py                                      22      5      2      1    75%
fakeredis/_basefakesocket.py                              251     10    106     10    94%
fakeredis/_command_args_parsing.py                         71      2     42      2    96%
fakeredis/_commands.py                                    359     11    140      7    96%
fakeredis/_connection.py                                   95     10     32      7    87%
fakeredis/_fakesocket.py                                   10      0      0      0   100%
fakeredis/_helpers.py                                     170      4     65      3    97%
fakeredis/_msgs.py                                        102      0      0      0   100%
fakeredis/_server.py                                       63      5     18      3    90%
fakeredis/_tcp_server.py                                   95     14     40     12    79%
fakeredis/_valkey.py                                       36     16     10      1    59%
fakeredis/aioredis.py                                     150     14     47      8    88%
fakeredis/commands_mixins/__init__.py                      22      5      0      0    77%
fakeredis/commands_mixins/acl_mixin.py                    111     13     70      9    88%
fakeredis/commands_mixins/bitmap_mixin.py                 200      4    116      2    98%
fakeredis/commands_mixins/connection_mixin.py              33      1     14      1    96%
fakeredis/commands_mixins/generic_mixin.py                268     56    152     12    78%
fakeredis/commands_mixins/geo_mixin.py                    148     11     77      5    90%
fakeredis/commands_mixins/hash_mixin.py                   203      8    106      6    95%
fakeredis/commands_mixins/list_mixin.py                   245      8    152      9    96%
fakeredis/commands_mixins/pubsub_mixin.py                 119      7     66      8    90%
fakeredis/commands_mixins/scripting_mixin.py              175      7     86      7    95%
fakeredis/commands_mixins/server_mixin.py                  68      4     34      2    94%
fakeredis/commands_mixins/set_mixin.py                    144     12     92      6    91%
fakeredis/commands_mixins/sortedset_mixin.py              420     16    225     16    95%
fakeredis/commands_mixins/streams_mixin.py                258     27    160     28    87%
fakeredis/commands_mixins/string_mixin.py                 235      9    147     10    95%
fakeredis/commands_mixins/transactions_mixin.py            74      7     30      3    90%
fakeredis/geo/__init__.py                                   3      0      0      0   100%
fakeredis/geo/geohash.py                                   45      0     18      0   100%
fakeredis/geo/haversine.py                                 10      0      0      0   100%
fakeredis/model/__init__.py                                 7      0      0      0   100%
fakeredis/model/_acl.py                                   144      6     34      5    94%
fakeredis/model/_command_info.py                           46      3     26      4    90%
fakeredis/model/_stream.py                                325     14    122     11    94%
fakeredis/model/_timeseries_model.py                      173     13     84      4    90%
fakeredis/model/_topk.py                                   85      1     30      3    97%
fakeredis/model/_zset.py                                   68      0     16      0   100%
fakeredis/server_specific_commands/__init__.py              2      0      0      0   100%
fakeredis/server_specific_commands/dragonfly_mixin.py      15      7      2      0    59%
fakeredis/stack/__init__.py                                27     14      4      0    42%
fakeredis/stack/_bf_mixin.py                              122     18     74      9    81%
fakeredis/stack/_cf_mixin.py                              132     27     66      9    79%
fakeredis/stack/_cms_mixin.py                              79      0     50      0   100%
fakeredis/stack/_json_mixin.py                            327     12    180     10    96%
fakeredis/stack/_tdigest_mixin.py                         173     32    118     29    79%
fakeredis/stack/_timeseries_mixin.py                      337     45    206     33    84%
fakeredis/stack/_topk_mixin.py                             77     15     48     15    76%
-----------------------------------------------------------------------------------------
TOTAL                                                    6344    493   3107    310    91%