MCPcopy Create free account
hub / github.com/aarnphm/whispercpp / test_from_buffer

Function test_from_buffer

tests/context_export_test.py:60–65  ·  view source on GitHub ↗
(
    models: str, params: w.api.Params, audio_file: NDArray[np.float32]
)

Source from the content-addressed store, hash-verified

58 "models", [path.__fspath__() for path in ROOT_TEST.joinpath("models").glob("*.bin")]
59)
60def test_from_buffer(
61 models: str, params: w.api.Params, audio_file: NDArray[np.float32]
62):
63 with open(models, "rb") as f:
64 context = w.api.Context.from_buffer(f.read())
65 assert not context.full(params, audio_file)

Callers

nothing calls this directly

Calls 2

from_bufferMethod · 0.80
fullMethod · 0.80

Tested by

no test coverage detected