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: CodeGeneratorTest.m
    path of file: ./repos/robotics-toolbox-matlab/unit_test
    
    the code of the file until where you have to start completion: function tests = CodeGeneratorTest
    tests = functiontests(localfunctions);
end

function setupOnce(testCase)
    % Create a test robot based on the first three links of the Puma 560.
    deg = pi/180;
    L(1) = Revolute('d', 0, 'a', 0, 'alpha', pi/2, ...
    'I', [0, 0.35, 0, 0, 0, 0], ...
    'r', [0, 0, 0], ...
    'm', 0, ...
    'Jm', 200e-6, ...
    'G', -62.6111, ...
    'B', 1.48e-3, ...
    'Tc', [0.395 -0.435], ...
    'qlim', [-160 160]*deg );

    L(2) = Revolute('d', 0, 'a', 0.4318, 'alpha', 0, ...
    'I', [0.13, 0.524, 0.539, 0, 0, 0], ...
    'r', [-0.3638, 0.006, 0.2275], ...
    'm', 17.4, ...
    'Jm', 200e-6, ...
    'G', 107.815
    
function time(testCase): %f\n', tRTB)
        fprintf('Sym function time(testCase): %f  speedups: %f to RTB\n',tSym, tRTB/tSym);
        fprintf('M function time(testCase): %f  speedups: %f  to RTB,  %f  to Sym\n',tM, tRTB/tM, tSym/tM);
        fprintf('MEX function time(testCase): %f  speedups: %f  to RTB,  %f  to Sym, %f to M\n',tMEX, tRTB/tMEX, tSym/tMEX, tM/tMEX);
    end
    
    verifyEqual(testCase, resRTB0, resMEX0, 'absTol', 1e-6);
    verifyEqual(testCase, resRTBn, resMEXn, 'absTol', 1e-6);
end
    
    %%
function geninertia_test(testCase)
    % - test inertial matrix against numeric version
    [I] = testCase.TestData.cGen.geninertia;
    
    addpath(testCase.TestData.cGen.basepath);
    
    specRob = eval(testCase.TestData.cGen.getrobfname);
    symQ = testCase.TestData.rob.gencoords;
    
    Q = rand(testCase.TestData.nTrials,specRob.n);
    resRTB = rand(specRob.n,specRob.n,testCase.TestData.nTrials);
    resSym = rand(specRob.n,specRob.n,testCase.TestData.nTrials);
    resM = rand(specRob.n,specRob.n,testCase.TestData.nTrials);
    resMEX = rand(specRob.n,specRob.n,testCase.TestData.nTrials);
    
    if testCase.TestData.profile
        profile on
    end