Debian Codegraph @

test/private/hasTestFailed.m

raw
1 function bool = hasTestFailed(status)
2 % returns true when the test has failed
3
4 if iscell(status) % allow for vectorization of the call
5 bool = cellfun(@hasTestFailed, status, 'UniformOutput', true);
6 else
7 stages = getStagesFromStatus(status);
8 bool = false;
9 for jStage = 1:numel(stages)
10 bool = bool || status.(stages{jStage}).error;
11 end
12 end
13 end