Skip to content

Improved FromBuffer() to accept Memory<byte> for better memory management #310

Improved FromBuffer() to accept Memory<byte> for better memory management

Improved FromBuffer() to accept Memory<byte> for better memory management #310

GitHub Actions / Whisper.net Linux Test Results succeeded Jan 4, 2025 in 0s

36 passed, 0 failed and 2 skipped

Tests passed successfully

Report Passed Failed Skipped Time
tests/Whisper.net.Tests/TestResults/_fv-az1692-895_2025-01-04_12_54_43.trx 18✅ 1⚪ 40s
tests/Whisper.net.Tests/TestResults/_fv-az1692-895_2025-01-04_12_54_46.trx 18✅ 1⚪ 40s

✅ tests/Whisper.net.Tests/TestResults/_fv-az1692-895_2025-01-04_12_54_43.trx

19 tests were completed in 40s with 18 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
Whisper.net.Tests.FactoryTests 6✅ 736ms
Whisper.net.Tests.ProcessAsyncFunctionalTests 5✅ 30s
Whisper.net.Tests.ProcessFunctionalTests 6✅ 1⚪ 38s
Whisper.net.Tests.ProcessQuantizedTests 1✅ 9s

✅ Whisper.net.Tests.FactoryTests

✅ CreateBuilder_WithCorruptedModel_ShouldThrow
✅ CreateBuilder_WithDisposedFactory_ShouldThrow
✅ CreateBuilder_WithFileModel_ShouldReturnBuilder
✅ CreateBuilder_WithMemoryModel_ShouldReturnBuilder
✅ CreateBuilder_WithNoModel_ShouldThrow
✅ GetSupportedLanguages_ShouldReturnAll

✅ Whisper.net.Tests.ProcessAsyncFunctionalTests

✅ ProcessAsync_CalledMultipleTimes_Serially_WillCompleteEverytime
✅ ProcessAsync_Cancelled_WillCancellTheProcessing_AndDispose_WillWaitUntilFullyFinished
✅ ProcessAsync_WhenJunkChunkExists_ProcessCorrectly
✅ ProcessAsync_WhenMultichannel_ProcessCorrectly
✅ TestHappyFlowAsync

✅ Whisper.net.Tests.ProcessFunctionalTests

✅ Process_CalledMultipleTimes_Serially_WillCompleteEverytime
✅ Process_WhenMultichannel_ProcessCorrectly
✅ Test_LibraryLoadError_ShouldFallbackToCPU(invalidLibrary: "cuda")
✅ Test_LibraryLoadError_ShouldFallbackToCPU(invalidLibrary: "openvino")
✅ TestAutoDetectLanguageWithRomanian
⚪ TestCancelEncoder
✅ TestHappyFlow

✅ Whisper.net.Tests.ProcessQuantizedTests

✅ TestHappyFlowQuantized

✅ tests/Whisper.net.Tests/TestResults/_fv-az1692-895_2025-01-04_12_54_46.trx

19 tests were completed in 40s with 18 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
Whisper.net.Tests.FactoryTests 6✅ 2s
Whisper.net.Tests.ProcessAsyncFunctionalTests 5✅ 32s
Whisper.net.Tests.ProcessFunctionalTests 6✅ 1⚪ 38s
Whisper.net.Tests.ProcessQuantizedTests 1✅ 8s

✅ Whisper.net.Tests.FactoryTests

✅ CreateBuilder_WithCorruptedModel_ShouldThrow
✅ CreateBuilder_WithDisposedFactory_ShouldThrow
✅ CreateBuilder_WithFileModel_ShouldReturnBuilder
✅ CreateBuilder_WithMemoryModel_ShouldReturnBuilder
✅ CreateBuilder_WithNoModel_ShouldThrow
✅ GetSupportedLanguages_ShouldReturnAll

✅ Whisper.net.Tests.ProcessAsyncFunctionalTests

✅ ProcessAsync_CalledMultipleTimes_Serially_WillCompleteEverytime
✅ ProcessAsync_Cancelled_WillCancellTheProcessing_AndDispose_WillWaitUntilFullyFinished
✅ ProcessAsync_WhenJunkChunkExists_ProcessCorrectly
✅ ProcessAsync_WhenMultichannel_ProcessCorrectly
✅ TestHappyFlowAsync

✅ Whisper.net.Tests.ProcessFunctionalTests

✅ Process_CalledMultipleTimes_Serially_WillCompleteEverytime
✅ Process_WhenMultichannel_ProcessCorrectly
✅ Test_LibraryLoadError_ShouldFallbackToCPU(invalidLibrary: "cuda")
✅ Test_LibraryLoadError_ShouldFallbackToCPU(invalidLibrary: "openvino")
✅ TestAutoDetectLanguageWithRomanian
⚪ TestCancelEncoder
✅ TestHappyFlow

✅ Whisper.net.Tests.ProcessQuantizedTests

✅ TestHappyFlowQuantized