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: runTESTdir.m
    path of file: ./repos/d4m/matlab_src
    
    the code of the file until where you have to start completion: function Atest = runTESTdir(testDir)
%runTESTdir: Runs every *TEST.m script in a directory.
%Associative array and database utility funct
    
function [result time message] = runTESTfile(testscript)

   % Set default results.
   result = 'PASS';
   time = -1.0;
   message = '';

   % Run the script.
   try
     tic;
       evalin('base', testscript)
     time = toc;
   catch
     result = 'FAIL';
     message = lasterr;
   end