MCPcopy
hub / github.com/redis/redis-py / test_ltrim

Method test_ltrim

tests/test_commands.py:3985–3988  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

3983 r.arop("a", 0, 2, ArrayAggregateOperations.MATCH)
3984
3985 def test_ltrim(self, r):
3986 r.rpush("a", "1", "2", "3")
3987 assert r.ltrim("a", 0, 1)
3988 assert r.lrange("a", 0, -1) == [b"1", b"2"]
3989
3990 def test_rpop(self, r):
3991 r.rpush("a", "1", "2", "3")

Callers

nothing calls this directly

Calls 3

rpushMethod · 0.80
ltrimMethod · 0.80
lrangeMethod · 0.80

Tested by

no test coverage detected