Code covered by the BSD License  

Highlights from
sldvmisscovtool

image thumbnail

sldvmisscovtool

by

 

30 Oct 2008 (Updated )

A GUI tool to obtain test cases for missing coverage objectives

_importTemplate.m
function [simdata,testcasename] = _importTemplate(Mode)
% sldvmisscovtoolp C|[g֐ (ev[g)
% Import function template for sldvmisscovtool
%
% ̃t@C import n܂t@CƂĕۑ
% sldvmisscovtool GUÍuC|[gvɓǂݍ܂܂B
% (sldvmisscovtool̍ċNKvƂȂ܂)
%
% By saving as a function M-file begining with "import", this function will
% be listed as [Import] function in sldvmisscovtool GUI.
% Re-run of sldvmisscovtool is needed.

%   Copyright 2010-2011 The MathWorks, Inc. 

switch Mode
%% description
    case 'description'
        if any(strcmp(get(0,'lang'),{'ja_jp.shift_jis','japanese','ja_jp'}))
            % {ꃂ[h̏ꍇɕ\
            simdata = 'v_EXgɕ\镶';
            testcasename = '[Import] Descriptions of this feature. This shown in the information window.';
        else
            % Shown in non-Japanese mode
            simdata = 'Strings shown pull-down list blox in GUI';
            testcasename = ['[Import] Descriptions of this feature. This shown in the information window.'];
        end
%% import
    case 'import'
        
        % C|[gsAMf[^Ƃĕϐ simdata ԕt\̂̌`ō쐬
        % Imported data needs to be expressed as structure with time format
        % with variable name simdata.
        simdata(1).time = 0:0.1:1;
        simdata(1).signals(1).values=[1 2];
        simdata(1).signals(1).label='signal1';
        simdata(1).signals(1).dimensions=1;
        % eXgP[XXg{bNXɕ\eXgP[Xw肵܂B
        % Specify name of the test case which will be shown in TestCase
        % list box in GUI
        testcasename{1} = 'TestCase01';
end


Contact us