MCPcopy Create free account
hub / github.com/tirth8205/code-review-graph / test_blob_size

Method test_blob_size

tests/test_embeddings.py:40–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 assert decoded == []
39
40 def test_blob_size(self):
41 vec = [1.0, 2.0, 3.0]
42 blob = _encode_vector(vec)
43 assert len(blob) == 12 # 3 floats * 4 bytes each
44
45
46class TestCosineSimilarity:

Callers

nothing calls this directly

Calls 1

_encode_vectorFunction · 0.90

Tested by

no test coverage detected