MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / sum_bytes

Function sum_bytes

scripts/test_stringzilla.py:1050–1051  ·  view source on GitHub ↗
(body: str)

Source from the content-addressed store, hash-verified

1048@pytest.mark.parametrize("seed_value", SEED_VALUES)
1049def test_bytesum_random(length: int, seed_value: int):
1050 def sum_bytes(body: str) -> int:
1051 return sum([ord(c) for c in body])
1052
1053 seed_random_generators(seed_value)
1054 body = get_random_string(length=length)

Callers 1

test_bytesum_randomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…