"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isResult = exports.notApplicable = exports.resultFromTest = void 0;
const IInfoItemData_1 = require("../IInfoItemData");
const ProjectInfoItem_1 = require("../ProjectInfoItem");
function resultFromTest(test, generatorId, message, projectItem, data) {
    return new ProjectInfoItem_1.default(test.severity || IInfoItemData_1.InfoItemType.error, generatorId, test.id, message ?? test.defaultMessage ?? test.title, projectItem, data);
}
exports.resultFromTest = resultFromTest;
// Can be returned to show this check does apply to this case
function notApplicable() {
    return [];
}
exports.notApplicable = notApplicable;
// confirms a result has been returned and/or filters nulls in a way the compiler will understand
function isResult(value) {
    return !!value;
}
exports.isResult = isResult;

//# sourceMappingURL=../../maps/info/tests/TestDefinition.js.map
