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_moxunit_run.m
    path of file: ./repos/fieldtrip/utilities/private
    
    the code of the file until where you have to start completion: function passed = ft_test_moxunit_run(unused,varargin)

% FT_TEST_MOXUNIT_RUN documentation is included inside ft_test
% documentation.
% 
% See also FT_TEST

% Copyright (C) 2017, Nikolaas N. Oosterhof
%
% This file is part of FieldTrip, see http://www.fieldtriptoolbox.org
% for the docu
    
function check_dependencies()
% throw an error if MOxUnit is not available

    if isempty(which('moxunit_runtests'))
        ft_error(['MOxUnit is required; see '...
                    'https://github.com/moxunit/moxunit']);
    end

function fieldtrip_root_dir=get_fieldtrip_root_dir()
    fieldtrip_root_dir=fileparts(which('ft_defaults'));
    if isempty(fieldtrip_root_dir)
        ft_error('Fieldtrip path is not set');
    end