MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / test_hash_embedding_batch_matches_single

Function test_hash_embedding_batch_matches_single

tests/test_providers.py:303–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301
302@pytest.mark.unit
303def test_hash_embedding_batch_matches_single() -> None:
304 embed = HashEmbedding(dimensions=16)
305 batch = embed.embed_batch(["a", "b", "c"])
306 assert len(batch) == 3
307 assert batch[0] == embed.embed("a")
308 assert batch[1] == embed.embed("b")
309 assert batch[2] == embed.embed("c")
310
311
312@pytest.mark.unit

Callers

nothing calls this directly

Calls 3

embed_batchMethod · 0.95
embedMethod · 0.95
HashEmbeddingClass · 0.90

Tested by

no test coverage detected