function parametersMap = getCvTestFieldsToModelParametersMap(~)
% getCvTestFieldsToModelParametersMap returns a map indicating the mapping
% between cvtest fields and model parameters

% Copyright 2019 The MathWorks, Inc.

    parametersMap = containers.Map;
    
    % add key-value pairs mapping each field in cvTestObj.settings to
    % corresponding model parameter
    parametersMap("decision") = "CovMetricStructuralLevel";
    parametersMap("condition") = "CovMetricStructuralLevel";
    parametersMap("mcdc") = "CovMetricStructuralLevel";
    parametersMap("tableExec") = "CovMetricLookupTable";
    parametersMap("sigrange") = "CovMetricSignalRange";
    parametersMap("sigsize") = "CovMetricSignalSize";
    parametersMap("designverifier") = "CovMetricObjectiveConstraint";
    parametersMap("overflowsaturation") = "CovMetricSaturateOnIntegerOverflow";
    parametersMap("relationalop") = "CovMetricRelationalBoundary";

    % add key-value pairs mapping each field in modelRefsettings to
    % corresponding model parameter
    parametersMap("modelRefSettingsEnable") = "CovModelRefEnable";
    parametersMap("excludeTopModel") = "CovIncludeTopModel";
    parametersMap("excludedModels") = "CovModelRefExcluded";

    % add key-value pairs mapping each field in emlsettings to
    % corresponding model parameter
    parametersMap("enableExternal") = "CovExternalEMLEnable";

    % add key-value pairs mapping each field in sfcnsettings to
    % corresponding model parameter
    parametersMap("enableSfcn") = "CovSFcnEnable";   

    % add key-value pairs mapping each field in options to
    % corresponding model parameter
    parametersMap("forceBlockReduction") = "CovForceBlockReductionOff";
    parametersMap("useTimeInterval") = "CovUseTimeInterval";
    parametersMap("intervalStartTime") = "CovStartTime";
    parametersMap("intervalStopTime") = "CovStopTime";
    parametersMap("covBoundaryRelTol") = "CovBoundaryRelTol";
    parametersMap("covBoundaryAbsTol") = "CovBoundaryAbsTol";
    parametersMap("mcdcmode") = "CovMcdcMode";
    
    parametersMap("filter") = "CovFilter";
end

