0001 function [ files ] = dsUnitGetAutogenDirs( localfn_flag, query_flag )
0002
0003
0004
0005
0006
0007
0008
0009 if ~exist('localfn_flag','var')
0010 localfn_flag = false;
0011 end
0012 if ~exist('query_flag','var')
0013 query_flag = false;
0014 end
0015
0016 if ~query_flag
0017 files = lscell(fullfile(dsGetConfig('ds_unitTestData_path'), 'autogenDirs'));
0018 else
0019
0020 files = lscell(fullfile(dsGetConfig('ds_unitTestData_path'), 'autogenDirs', ['*' evalin('base','query') '*_autogen_*']));
0021 end
0022
0023 if localfn_flag
0024 files = files( ~cellfun(@isempty,regexp(files,'__')) );
0025 else
0026 files = files( cellfun(@isempty,regexp(files,'__')) );
0027 end
0028
0029 end