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: test_ft_preproc_detrend.m
    path of file: ./repos/fieldtrip/test
    
    the code of the file until where you have to start completion: function tests = test_ft_preproc_detrend

% MEM 1gb

    
function tests = test_ft_preproc_detrend

% MEM 1gb
% WALLTIME 00:10:00
% DEPENDENCY ft_preproc_detrend
% DATA no

if nargout
  % assume that this is called by RUNTESTS
  tests = functiontests(localfunctions);
else
  % assume that this is called from the command line
  fn = localfunctions;
  for i=1:numel(fn)
    feval(fn{i});
  end