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: end2end_restingfMRI.m
    path of file: ./repos/spm/tests
    
    the code of the file until where you have to start completion: function tests = end2end_restingfMRI
% End-to-end test for resting dataset

    
function tests = end2end_restingfMRI
% End-to-end test for resting dataset
%__________________________________________________________________________

% Copyright (C) 2017-2022 Wellcome Centre for Human Neuroimaging


tests = functiontests(localfunctions);

% -------------------------------------------------------------------------
function setupOnce(testCase)

% Prepare path
data_path = get_data_path();
rest_path  = fullfile(data_path,'spdcm');

if exist(rest_path,'file')
    % Clear out existing analysis files
    P = spm_select('FPList', fullfile(rest_path,'glm'),'.*');
    for i = 1:size(P,1)
        spm_unlink(P(i,:));
    end