0001 function [ files ] = dsUnitGetAutogenFiles( 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'), 'autogen'));
0018 else
0019 files = lscell(fullfile(dsGetConfig('ds_unitTestData_path'), 'autogen', ['*' evalin('base','query') '*']));
0020 end
0021
0022 if localfn_flag
0023 files = files( ~cellfun(@isempty,regexp(files,'__')) );
0024 else
0025 files = files( cellfun(@isempty,regexp(files,'__')) );
0026 end
0027
0028 end