Test get_shard_id.
(self)
| 385 | """Tests for datastudio.utils.database module (LMDB).""" |
| 386 | |
| 387 | def test_get_shard_id(self): |
| 388 | """Test get_shard_id.""" |
| 389 | from datastudio.utils.database import get_shard_id |
| 390 | |
| 391 | shard_id = get_shard_id("test_key", num_shards=32) |
| 392 | |
| 393 | assert isinstance(shard_id, int) |
| 394 | assert 0 <= shard_id < 32 |
| 395 | |
| 396 | def test_get_shard_id_consistent(self): |
| 397 | """Test get_shard_id is consistent.""" |
nothing calls this directly
no test coverage detected