Skip to content

Commit a0b58c3

Browse files
committed
Add test to verify that an error is thrown if a value that is not a Proxy object is supplied to the RecordBatchStreamReader constructor.
1 parent 7d76b8e commit a0b58c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

matlab/test/arrow/io/ipc/tRecordBatchStreamReader.m

+8
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,14 @@ function ErrorIfNotIpcStreamFile(testCase, RecordBatchStreamReaderConstructorFcn
361361
testCase.verifyError(fcn, "arrow:io:ipc:FailedToOpenRecordBatchReader");
362362
end
363363

364+
function ErrorIfNotProxy(testCase)
365+
% Verify the RecordBatchStreamReader constructor throws an exception
366+
% with the identifier MATLAB:validation:UnableToConvert if the input
367+
% is not a Proxy object.
368+
fcn = @() arrow.io.ipc.RecordBatchStreamReader(testCase.RandomAccessFile);
369+
testCase.verifyError(fcn, "MATLAB:validation:UnableToConvert");
370+
end
371+
364372
end
365373

366374
end

0 commit comments

Comments
 (0)