Skip to content

Commit

Permalink
Add test to verify that an error is thrown if a value that is not a P…
Browse files Browse the repository at this point in the history
…roxy object is supplied to the RecordBatchStreamReader constructor.
  • Loading branch information
kevingurney committed Jan 15, 2025
1 parent 7d76b8e commit a0b58c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions matlab/test/arrow/io/ipc/tRecordBatchStreamReader.m
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,14 @@ function ErrorIfNotIpcStreamFile(testCase, RecordBatchStreamReaderConstructorFcn
testCase.verifyError(fcn, "arrow:io:ipc:FailedToOpenRecordBatchReader");
end

function ErrorIfNotProxy(testCase)
% Verify the RecordBatchStreamReader constructor throws an exception
% with the identifier MATLAB:validation:UnableToConvert if the input
% is not a Proxy object.
fcn = @() arrow.io.ipc.RecordBatchStreamReader(testCase.RandomAccessFile);
testCase.verifyError(fcn, "MATLAB:validation:UnableToConvert");
end

end

end

0 comments on commit a0b58c3

Please sign in to comment.