You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: testHydroSight.m
    path of file: ./repos/HydroSight
    
    the code of the file until where you have to start completion: function results = testHydroSight(runTests)

    
function results = testHydroSight(runTests)
% Setup test environment and run suite.
%
% Setup includes closig the parpool and ensuring it does not autostart. The
% GUI layout toolbox is also installed. If the setup is successful, and
% only the setup is being done, then result equals 0, else -1;
%
% If runTests==true, then the test suite is also built and run. If so, then
% result equals a cell array of the TestResult objects.
%

    % Initialise output    
    results = 0;

    % Check matlab is after 2022a
    if isMATLABReleaseOlderThan("R2022a")
        error('HydroSight testing requires Matllab 2022a or later.');
    end