Skip to content

Commit 0529ad8

Browse files
committed
format
1 parent e1ec558 commit 0529ad8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

plugins/+matlab/+unittest/+internal/+services/+plugins/CodeCoverageSummaryPluginService.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33

44
methods
55
function plugins = providePlugins(~, ~)
6-
v = ver;
6+
verInfo = ver;
7+
productNames = string({verInfo.Name});
8+
productName = 'MATLAB Test';
9+
isProductInstalled = any(productNames.matches(productName));
710
% Check if MATLAB Test license is available and MATLAB Test is installed
8-
if license('test', 'matlab_test') && any(strcmp({v.Name}, 'MATLAB Test'))
11+
if license('test', 'matlab_test') && isProductInstalled
912
% Get metric level from environment variable
1013
metricLevel = getenv('INPUT_CODE_COVERAGE_METRIC_LEVEL');
1114

0 commit comments

Comments
 (0)