diff --git a/test/base/getEnvironment.m b/test/base/getEnvironment.m index 525dab0..dc93815 100644 --- a/test/base/getEnvironment.m +++ b/test/base/getEnvironment.m @@ -7,7 +7,6 @@ % environment: a struct with two fields % * .globals - contains all global values % * .path - contains the current path -% % NOTE: % this function has been uploaded from % https://github.com/opencobra/cobratoolbox/blob/master/src/base/utilities/getEnvironment.m diff --git a/test/base/getFilesInDir.m b/test/base/getFilesInDir.m index 3b5e399..788e462 100644 --- a/test/base/getFilesInDir.m +++ b/test/base/getFilesInDir.m @@ -49,7 +49,6 @@ % https://github.com/opencobra/cobratoolbox/blob/master/src/base/install/getFilesInDir.m % [cdb2478] - persistent COBRAIgnored if isempty(COBRAIgnored) diff --git a/test/base/getGlobalValue.m b/test/base/getGlobalValue.m index cabc519..053ad06 100644 --- a/test/base/getGlobalValue.m +++ b/test/base/getGlobalValue.m @@ -15,7 +15,6 @@ % https://github.com/opencobra/cobratoolbox/blob/master/src/base/utilities/getGlobalValue.m % [e6b4efd] - eval(['global ' globalName]); eval(['value = ' globalName ';']); end \ No newline at end of file diff --git a/test/base/getIgnoredFiles.m b/test/base/getIgnoredFiles.m index 18c9345..9ec79a5 100644 --- a/test/base/getIgnoredFiles.m +++ b/test/base/getIgnoredFiles.m @@ -16,14 +16,11 @@ % % .. Authors: - Original Code: Laurent Heirendt % - Move to function: Thomas Pfau, Jan 2018 -% % NOTE: % this function has been adapted from % https://github.com/opencobra/cobratoolbox/blob/master/src/base/install/getIgnoredFiles.m % [f9a9213] - - global CELLFIEDIR fid = fopen([CELLFIEDIR filesep '.gitignore']); diff --git a/test/base/restoreEnvironment.m b/test/base/restoreEnvironment.m index a9184b4..452fa58 100644 --- a/test/base/restoreEnvironment.m +++ b/test/base/restoreEnvironment.m @@ -12,7 +12,6 @@ function restoreEnvironment(environment, restorePath, printLevel) % printLevel: Set the verbosity of this method: % * 0: No outputs (Default) % * 1: Info what each value is set to -% % NOTE: % this function has been adapted from % https://github.com/opencobra/cobratoolbox/blob/master/src/base/utilities/restoreEnvironment.m diff --git a/test/base/runScriptFile.m b/test/base/runScriptFile.m index b817502..9c00c89 100644 --- a/test/base/runScriptFile.m +++ b/test/base/runScriptFile.m @@ -1,7 +1,7 @@ function result = runScriptFile(fileName) % This function runs the test in fileName % It can distinguish between skipped and Failed tests. A test is considered -% to be skipped if it throws a COBRA:RequirementsNotMet error. +% to be skipped if it throws a CELLFIE:RequirementsNotMet error. % % OUTPUTS: % @@ -23,7 +23,6 @@ % https://github.com/opencobra/cobratoolbox/blob/master/test/runScriptFile.m % [b58da0c] - global CBT_MISSING_REQUIREMENTS_ERROR_ID CELLFIE_TESTSUITE_TESTFILE = fileName; diff --git a/test/base/runTestSuite.m b/test/base/runTestSuite.m index c8cc325..7933eb3 100644 --- a/test/base/runTestSuite.m +++ b/test/base/runTestSuite.m @@ -30,7 +30,6 @@ % https://github.com/opencobra/cobratoolbox/blob/master/test/runTestSuite.m % [5395578] - global CELLFIEDIR if ~exist('testNames','var') diff --git a/test/base/setGlobal.m b/test/base/setGlobal.m index 2bd7dae..fc08c6f 100644 --- a/test/base/setGlobal.m +++ b/test/base/setGlobal.m @@ -6,14 +6,13 @@ function setGlobal(globalName,globalValue) % % INPUTS: % globalName: A string representing the name of the global variable -% globalValue: The value to set the global variable +% globalValue: The value to set the global variable to % % NOTE: % this function has been adapted from % https://github.com/opencobra/cobratoolbox/blob/master/src/base/utilities/setGlobal.m % [e6b4efd] - eval([ globalName '_val = globalValue;']); eval(['global ' globalName]); eval([globalName ' = ' globalName '_val;']);