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

Method test_bitop_diff

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

Source from the content-addressed store, hash-verified

1666 @pytest.mark.onlynoncluster
1667 @skip_if_server_version_lt("8.1.224")
1668 def test_bitop_diff(self, r):
1669 r["a"] = b"\xf0"
1670 r["b"] = b"\xc0"
1671 r["c"] = b"\x80"
1672
1673 result = r.bitop("DIFF", "result", "a", "b", "c")
1674 assert result == 1
1675 assert r["result"] == b"\x30"
1676
1677 r.bitop("DIFF", "result2", "a", "nonexistent")
1678 assert r["result2"] == b"\xf0"
1679
1680 @pytest.mark.onlynoncluster
1681 @skip_if_server_version_lt("8.1.224")

Callers

nothing calls this directly

Calls 1

bitopMethod · 0.80

Tested by

no test coverage detected