File tree Expand file tree Collapse file tree 15 files changed +14
-105
lines changed Expand file tree Collapse file tree 15 files changed +14
-105
lines changed Original file line number Diff line number Diff line change 55end
66
77methods (TestClassSetup )
8-
9- function setup_path(tc )
10- top = fullfile(fileparts(mfilename(" fullpath" )), " .." );
11- tc .applyFixture(matlab .unittest .fixtures .PathFixture(top ))
12- end
13-
148function setup_file(tc )
159import matlab .unittest .constraints .IsFile
1610tc.TestData.basic = fullfile(matlabroot , " toolbox/matlab/demos/example.hdf" );
Original file line number Diff line number Diff line change 1212end
1313
1414methods (TestClassSetup )
15- function setup_path(tc )
16- top = fullfile(fileparts(mfilename(" fullpath" )), " .." );
17- tc .applyFixture(matlab .unittest .fixtures .PathFixture(top ))
18- end
19-
2015function setup_file(tc )
2116import matlab .unittest .fixtures .TemporaryFolderFixture
2217import matlab .unittest .constraints .IsFile
Original file line number Diff line number Diff line change 66end
77
88methods (TestClassSetup )
9-
10- function setup_path(tc )
11- top = fullfile(fileparts(mfilename(" fullpath" )), " .." );
12- tc .applyFixture(matlab .unittest .fixtures .PathFixture(top ))
13-
14- tc .assumeTrue(stdlib .has_java )
9+ function java_required(tc )
10+ tc .assumeTrue(stdlib .has_java())
1511end
16-
1712end
1813
1914methods (Test , ParameterCombination = ' sequential' )
Original file line number Diff line number Diff line change 11classdef TestIni < matlab .unittest .TestCase
22
3- methods (TestClassSetup )
4- function setup_path(tc )
5- top = fullfile(fileparts(mfilename(" fullpath" )), " .." );
6- tc .applyFixture(matlab .unittest .fixtures .PathFixture(top ))
7- end
8- end
93
104methods (Test )
115
Original file line number Diff line number Diff line change 11classdef TestJava < matlab .unittest .TestCase
22
33methods (TestClassSetup )
4-
5- function setup_path(tc )
6- top = fullfile(fileparts(mfilename(" fullpath" )), " .." );
7- tc .applyFixture(matlab .unittest .fixtures .PathFixture(top ))
8-
9- tc .assumeTrue(stdlib .has_java )
4+ function java_required(tc )
5+ tc .assumeTrue(stdlib .has_java())
106end
11-
127end
138
9+
1410methods (Test )
1511
1612function test_filesystem_type(tc )
Original file line number Diff line number Diff line change 55end
66
77methods (TestClassSetup )
8- function setup_path(tc )
9- top = fullfile(fileparts(mfilename(" fullpath" )), " .." );
10- tc .applyFixture(matlab .unittest .fixtures .PathFixture(top ))
11- end
128
139function setup_file(tc )
1410import matlab .unittest .constraints .IsFile
Original file line number Diff line number Diff line change 44p_parent
55end
66
7- methods (TestClassSetup )
8- % TestClassSetup runs this once per class instead of TestMethodSetup that
9- % runs once per test, which is much slower and unnecessary
10- function setup_path(tc )
11- top = fullfile(fileparts(mfilename(" fullpath" )), " .." );
12- tc .applyFixture(matlab .unittest .fixtures .PathFixture(top ))
13- end
14- end
15-
16-
177methods (TestParameterDefinition , Static )
188
199function p_parent = init_parent()
Original file line number Diff line number Diff line change 9494end
9595
9696
97- methods (TestClassSetup )
98-
99- function setup_path(tc )
100- top = fullfile(fileparts(mfilename(" fullpath" )), " .." );
101- tc .applyFixture(matlab .unittest .fixtures .PathFixture(top ))
102- end
103-
104- end
105-
106-
10797methods (Test )
10898
10999
Original file line number Diff line number Diff line change 22
33methods (TestClassSetup )
44
5- function setup_path(tc )
6- top = fullfile(fileparts(mfilename(" fullpath" )), " .." );
7- tc .applyFixture(matlab .unittest .fixtures .PathFixture(top ))
8- end
9-
10-
115function setup_workdir(tc )
126import matlab .unittest .constraints .IsFile
137import matlab .unittest .fixtures .TemporaryFolderFixture
Original file line number Diff line number Diff line change 11classdef TestSubprocess < matlab .unittest .TestCase
22
3- methods (TestClassSetup )
4- function setup_path(tc )
5- top = fullfile(fileparts(mfilename(" fullpath" )), " .." );
6- tc .applyFixture(matlab .unittest .fixtures .PathFixture(top ))
7-
8- tc .assumeTrue(stdlib .has_java )
3+ methods (TestClassSetup )
4+ function java_required(tc )
5+ tc .assumeTrue(stdlib .has_java())
96end
107end
118
You can’t perform that action at this time.
0 commit comments