all files / dist/ TransformOptions.js

87.5% Statements 42/48
100% Branches 4/4
68.42% Functions 13/19
87.5% Lines 42/48
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71                                10×   20×   60×   85×   20×   20×   10×   34×   10×          
"use strict";
var TransformOptions = (function () {
    function TransformOptions(opts) {
        this.customTestTransforms = [];
        this.defaultValueTransforms = [];
        this.ignorePropertyTransforms = [];
        this.ignoreTypeTransforms = [];
        this.optInPropertyTransforms = [];
        this.propertyTransforms = [];
        this.testStructureTransforms = [];
        this.typeTransforms = [];
        this.testStructurePrefix = opts.testStructurePrefix || "";
        this.testStructureSuffix = opts.testStructureSuffix || "TestStructure";
    }
    TransformOptions.prototype.addCustomTestTransform = function (customTestTransform) {
        this.customTestTransforms.push(customTestTransform);
    };
    TransformOptions.prototype.addDefaultValueTransform = function (defaultValueTransform) {
        this.defaultValueTransforms.push(defaultValueTransform);
    };
    TransformOptions.prototype.addIgnorePropertyTransform = function (ignorePropertyTransform) {
        this.ignorePropertyTransforms.push(ignorePropertyTransform);
    };
    TransformOptions.prototype.addIgnoreTypeTransform = function (ignoreTypeTransform) {
        this.ignoreTypeTransforms.push(ignoreTypeTransform);
    };
    TransformOptions.prototype.addOptInPropertyTransform = function (optInPropertyTransform) {
        this.optInPropertyTransforms.push(optInPropertyTransform);
    };
    TransformOptions.prototype.addPropertyTransform = function (propertyTransform) {
        this.propertyTransforms.push(propertyTransform);
    };
    TransformOptions.prototype.addTypeTransform = function (typeTransform) {
        this.typeTransforms.push(typeTransform);
    };
    TransformOptions.prototype.addTestStructureTransform = function (testStructureTransform) {
        this.testStructureTransforms.push(testStructureTransform);
    };
    TransformOptions.prototype.getCustomTestTransforms = function () {
        return this.customTestTransforms;
    };
    TransformOptions.prototype.getDefaultValueTransforms = function () {
        return this.defaultValueTransforms;
    };
    TransformOptions.prototype.getIgnorePropertyTransforms = function () {
        return this.ignorePropertyTransforms;
    };
    TransformOptions.prototype.getIgnoreTypeTransforms = function () {
        return this.ignoreTypeTransforms;
    };
    TransformOptions.prototype.getOptInPropertyTransforms = function () {
        return this.optInPropertyTransforms;
    };
    TransformOptions.prototype.getPropertyTransforms = function () {
        return this.propertyTransforms;
    };
    TransformOptions.prototype.getTestStructureTransforms = function () {
        return this.testStructureTransforms;
    };
    TransformOptions.prototype.getTypeTransforms = function () {
        return this.typeTransforms;
    };
    TransformOptions.prototype.getNameToTestStructureName = function (name) {
        return "" + this.testStructurePrefix + name + this.testStructureSuffix;
    };
    return TransformOptions;
}());
exports.TransformOptions = TransformOptions;
 
//# sourceMappingURL=TransformOptions.js.map