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: ft_test.m
    path of file: ./repos/spm12/external/fieldtrip/utilities
    
    the code of the file until where you have to start completion: function [result] = ft_test(varargin)

% FT_TEST performs selected FieldTrip test scripts or reports on previous test
% results from the dashboard database.
%
% Use as
%   ft_test run             ...
%   ft_test moxunit_run     ...
%   ft_test report          ...
%   ft_test compare         ...

    
function [result] = ft_test(varargin)

% FT_TEST performs selected FieldTrip test scripts or reports on previous test
% results from the dashboard database.
%
% Use as
%   ft_test run             ...
%   ft_test moxunit_run     ...
%   ft_test report          ...
%   ft_test compare         ...
%
% ========= Running simple tests scripts =========
%
% To execute a test and submit the results to the dashboard database, you would do
%   ft_test run
% to run all test functions, or
%   ft_test run test_bug46
% to run a selected test.
%
% Test functions should not require any input arguments. Any output arguments will
% not be considered.
%
% Additional optional arguments are specified as key-value pairs and can include
%   depend