MCPcopy Create free account
hub / github.com/Tencent/MMKV / test_equal

Function test_equal

Python/unit_test.py:183–193  ·  view source on GitHub ↗
(kv, mmap_id)

Source from the content-addressed store, hash-verified

181
182
183def test_equal(kv, mmap_id):
184 assert kv.mmapID() == mmap_id
185
186 another = mmkv.MMKV(mmap_id)
187 assert kv == another
188
189 kv_keys = sorted(kv.keys())
190 another_keys = sorted(another.keys())
191 assert kv_keys == another_keys
192
193 print('test equal: passed')
194
195
196if __name__ == '__main__':

Callers 1

unit_test.pyFile · 0.85

Calls 2

mmapIDMethod · 0.80
MMKVMethod · 0.45

Tested by

no test coverage detected