Skip to content
Permalink
Browse files

Update dependencies

- `concordialang-types` to `2.0.0`
- `concordialang-plugin` to `0.6.0`
  • Loading branch information...
thiagodp committed Jun 22, 2019
1 parent 7c6eff4 commit 7e0d9d3139c5ff12ccfac2af84f984488924c0d9
Showing 321 changed files with 2,475 additions and 629 deletions.
@@ -1,9 +1,10 @@
import { Document } from 'concordialang-types';
import { resolve } from 'path';

import { Document } from '../../modules/ast/Document';
import { NLPBasedSentenceRecognizer } from '../../modules/nlp/NLPBasedSentenceRecognizer';
import { SingleDocumentProcessor } from '../../modules/app/SingleDocumentProcessor';
import { Parser } from '../../modules/parser/Parser';
import { Lexer } from '../../modules/lexer/Lexer';
import { resolve } from 'path';
import { NLPTrainer } from '../../modules/nlp/NLPTrainer';
import { Options } from '../../modules/app/Options';
import { LanguageContentLoader, JsonLanguageContentLoader } from '../../modules/dict/LanguageContentLoader';
@@ -1,6 +1,7 @@
import { join } from "path";
import { FileInfo } from 'concordialang-types';
import { AugmentedSpec } from "../../modules/ast/AugmentedSpec";

import { FileInfo } from '../../modules/ast/FileInfo';
import { AugmentedSpec } from "../../modules/req/AugmentedSpec";
import { SimpleCompiler } from "../../modules/util/SimpleCompiler";

describe( 'AugmentedSpecTest', () => {
@@ -1,5 +1,7 @@
import * as path from 'path';
import { Location, Database, DatabaseProperties, DatabaseProperty } from 'concordialang-types';
import { Location } from 'concordialang-types';

import { Database, DatabaseProperties, DatabaseProperty } from '../../modules/ast';
import { NodeTypes } from '../../modules/req/NodeTypes';
import { DatabaseWrapper } from '../../modules/db/DatabaseWrapper';

@@ -1,10 +1,11 @@
import { resolve } from 'path';
import { Document, Table } from 'concordialang-types';

import { Document, Table } from '../../modules/ast';
import { InMemoryTableWrapper } from '../../modules/db/InMemoryTableWrapper';
import { Parser } from '../../modules/parser/Parser';
import { Lexer } from '../../modules/lexer/Lexer';
import { Options } from '../../modules/app/Options';
import { LexerBuilder } from '../../modules/lexer/LexerBuilder';
import { Options } from '../../modules/app/Options';

/**
* @author Thiago Delgado Pinto
@@ -1,4 +1,4 @@
import { ConstantBlock } from 'concordialang-types';
import { ConstantBlock } from '../../modules/ast';
import { ConstantBlockLexer } from '../../modules/lexer/ConstantBlockLexer';
import { NodeTypes } from '../../modules/req/NodeTypes';

@@ -1,4 +1,4 @@
import { RegexBlock } from 'concordialang-types';
import { RegexBlock } from '../../modules/ast';
import { RegexBlockLexer } from '../../modules/lexer/RegexBlockLexer';
import { NodeTypes } from '../../modules/req/NodeTypes';

@@ -1,6 +1,6 @@
import { TagLexer, TagSubLexer } from "../../modules/lexer/TagLexer";
import { NodeTypes } from "../../modules/req/NodeTypes";
import { ReservedTags } from "concordialang-types/dist";
import { ReservedTags } from "../../modules/ast";

/**
* @author Thiago Delgado Pinto
@@ -1,10 +1,11 @@
import { DatabaseProperty } from 'concordialang-types';
import { resolve } from 'path';

import { DatabaseProperty } from '../../modules/ast';
import { DatabasePropertyRecognizer } from '../../modules/nlp/DatabasePropertyRecognizer';
import { NodeTypes } from '../../modules/req/NodeTypes';
import { NLPTrainer } from '../../modules/nlp/NLPTrainer';
import { NLP } from '../../modules/nlp/NLP';
import { Options } from '../../modules/app/Options';
import { resolve } from 'path';
import { LanguageContentLoader, JsonLanguageContentLoader } from '../../modules/dict/LanguageContentLoader';

describe( 'DatabasePropertyRecognizerTest', () => {
@@ -1,9 +1,13 @@
import { Entities, NLPResult } from 'concordialang-types';
import { Intents } from '../../modules/nlp/Intents';
import { NLPTrainer } from '../../modules/nlp/NLPTrainer';
import { NLP } from '../../modules/nlp/NLP';
import { Options } from '../../modules/app/Options';
import { resolve } from 'path';

import {
Entities,
Intents,
NLP,
NLPResult,
NLPTrainer
} from '../../modules/nlp';
import { Options } from '../../modules/app/Options';
import { LanguageContentLoader, JsonLanguageContentLoader } from '../../modules/dict/LanguageContentLoader';


@@ -1,7 +1,10 @@
import { Entities, NLPResult } from 'concordialang-types';
import { NLPTrainingDataConversor } from '../../modules/nlp/NLPTrainingDataConversor';
import { NLPTrainingData } from '../../modules/nlp/NLPTrainingData';
import { NLP } from '../../modules/nlp/NLP';
import {
Entities,
NLP,
NLPResult,
NLPTrainingDataConversor,
NLPTrainingData
} from '../../modules/nlp';

/**
* @author Thiago Delgado Pinto
@@ -1,9 +1,8 @@
import { resolve } from 'path';
import { UIProperty } from 'concordialang-types';

import { UIProperty } from '../../modules/ast/UIElement';
import { NodeTypes } from '../../modules/req/NodeTypes';
import { NLPTrainer } from '../../modules/nlp/NLPTrainer';
import { NLP } from '../../modules/nlp/NLP';
import { UIPropertyRecognizer } from "../../modules/nlp/UIPropertyRecognizer";
import { NLP, NLPTrainer, UIPropertyRecognizer } from '../../modules/nlp';
import { Options } from '../../modules/app/Options';
import { LanguageContentLoader, JsonLanguageContentLoader } from '../../modules/dict/LanguageContentLoader';

@@ -1,12 +1,12 @@
import { resolve } from 'path';
import { Feature } from 'concordialang-types';
import { Feature } from '../../modules/ast/Feature';
import { NodeTypes } from '../../modules/req/NodeTypes';
import { NodeIterator } from '../../modules/parser/NodeIterator';
import { ParsingContext } from '../../modules/parser/ParsingContext';
import { NodeTypes } from '../../modules/req/NodeTypes';
import { FeatureParser } from '../../modules/parser/FeatureParser';
import { Lexer } from "../../modules/lexer/Lexer";
import { Options } from '../../modules/app/Options';
import { LexerBuilder } from '../../modules/lexer/LexerBuilder';
import { Options } from '../../modules/app/Options';

/**
* @author Thiago Delgado Pinto
@@ -1,10 +1,11 @@
import { resolve } from 'path';
import { Document } from 'concordialang-types';

import { Document } from '../../modules/ast/Document';
import { NodeTypes } from '../../modules/req/NodeTypes';
import { Lexer } from '../../modules/lexer/Lexer';
import { LexerBuilder } from '../../modules/lexer/LexerBuilder';
import { Parser } from '../../modules/parser/Parser';
import { Options } from '../../modules/app/Options';
import { LexerBuilder } from '../../modules/lexer/LexerBuilder';

/**
* @author Thiago Delgado Pinto
@@ -1,4 +1,4 @@
import { Scenario, Node, Feature } from 'concordialang-types';
import { Scenario, Node, Feature } from '../../modules/ast';
import { ScenarioParser } from '../../modules/parser/ScenarioParser';
import { NodeIterator } from '../../modules/parser/NodeIterator';
import { ParsingContext } from '../../modules/parser/ParsingContext';
@@ -1,4 +1,4 @@
import { Node, Feature, Tag, Import } from 'concordialang-types';
import { Node, Feature, Tag, Import } from '../../modules/ast';
import { NodeIterator } from '../../modules/parser/NodeIterator';
import { TagCollector } from '../../modules/parser/TagCollector';
import { NodeTypes } from "../../modules/req/NodeTypes";
@@ -1,4 +1,4 @@
import { Node, Feature, TestCase } from 'concordialang-types';
import { Node, Feature, TestCase } from '../../modules/ast';
import { NodeIterator } from '../../modules/parser/NodeIterator';
import { ParsingContext } from '../../modules/parser/ParsingContext';
import { NodeTypes } from '../../modules/req/NodeTypes';
@@ -1,11 +1,12 @@
import { Document } from 'concordialang-types';
import { resolve } from 'path';

import { Document } from '../../modules/ast/Document';
import { AugmentedSpec } from '../../modules/req/AugmentedSpec';
import { FeatureSSA } from '../../modules/semantic/FeatureSSA';
import { Parser } from '../../modules/parser/Parser';
import { Lexer } from '../../modules/lexer/Lexer';
import { AugmentedSpec } from '../../modules/ast/AugmentedSpec';
import { Options } from '../../modules/app/Options';
import { LexerBuilder } from '../../modules/lexer/LexerBuilder';
import { resolve } from 'path';
import { SpecFilter } from '../../modules/selection/SpecFilter';

/**
@@ -1,7 +1,17 @@
import { join } from 'path';
import { FileInfo, Import, Location, Feature, Document, TestCase, Tag, ReservedTags } from 'concordialang-types';
import { Location } from 'concordialang-types';

import {
FileInfo,
Import,
Feature,
Document,
TestCase,
Tag,
ReservedTags
} from '../../modules/ast/';
import { AugmentedSpec } from '../../modules/req/AugmentedSpec';
import { NodeTypes } from '../../modules/req/NodeTypes';
import { AugmentedSpec } from '../../modules/ast/AugmentedSpec';
import { TestCaseSSA } from '../../modules/semantic/TestCaseSSA';

/**
@@ -1,9 +1,10 @@
import { join } from 'path';
import { Document, FileInfo } from "concordialang-types";
import { LocatedException } from "concordialang-types";

import { Document, FileInfo } from "../../modules/ast";
import { AugmentedSpec } from "../../modules/req/AugmentedSpec";
import { LocatedException } from '../../modules/dbi';
import { UIElementSSA } from "../../modules/semantic/UIElementSSA";
import { SimpleCompiler } from "../../modules/util/SimpleCompiler";
import { AugmentedSpec } from "../../modules/ast/AugmentedSpec";
import { SpecFilter } from "../../modules/selection/SpecFilter";
import { BatchSpecificationAnalyzer } from "../../modules/semantic/BatchSpecificationAnalyzer";

@@ -1,5 +1,6 @@
import { resolve } from 'path';
import { Document } from 'concordialang-types';

import { Document } from '../../../modules/ast/Document';
import { Parser } from '../../../modules/parser/Parser';
import { ScenarioDA } from '../../../modules/semantic/single/ScenarioDA';
import { Lexer } from '../../../modules/lexer/Lexer';
@@ -1,8 +1,8 @@
import { TCGen } from "../../modules/testcase/TCGen";
import { SimpleCompiler } from "../../modules/util/SimpleCompiler";
import { AugmentedSpec } from "../../modules/ast/AugmentedSpec";
import { Document, FileInfo, Variant, TestCase } from "concordialang-types";
import { LocatedException } from "concordialang-types";
import { Document, FileInfo, Variant, TestCase } from "../../modules/ast";
import { AugmentedSpec } from "../../modules/req/AugmentedSpec";
import { LocatedException } from "../../modules/dbi/LocatedException";
import { PreTestCaseGenerator, GenContext } from "../../modules/testscenario/PreTestCaseGenerator";
import { SpecFilter } from "../../modules/selection/SpecFilter";
import { BatchSpecificationAnalyzer } from "../../modules/semantic/BatchSpecificationAnalyzer";
@@ -12,7 +12,6 @@ import { IndexOfEachStrategy } from "../../modules/selection/CombinationStrategy
import { TestScenario } from "../../modules/testscenario/TestScenario";
import { LongLimits } from "../../modules/testdata/limits/LongLimits";


describe( 'TCGenTest', () => {

let gen: TCGen; // under test
@@ -1,14 +1,15 @@
import { resolve } from "path";
import { Document } from 'concordialang-types';

import { Document } from '../../modules/ast/Document';
import { TestCaseFileGenerator } from "../../modules/testcase/TestCaseFileGenerator";
import { JsonLanguageContentLoader, LanguageContentLoader } from "../../modules/dict/LanguageContentLoader";
import { Options } from "../../modules/app/Options";
import { FileData, FileMeta } from "../../modules/app/SingleFileProcessor";
import { SingleFileCompiler } from "../../modules/app/SingleFileCompiler";
import { LexerBuilder } from "../../modules/lexer/LexerBuilder";
import { Parser } from "../../modules/parser/Parser";
import { NLPBasedSentenceRecognizer } from "../../modules/nlp/NLPBasedSentenceRecognizer";
import { NLPTrainer } from "../../modules/nlp/NLPTrainer";
import { FileData, FileMeta } from "../../modules/app/SingleFileProcessor";

/**
* @author Thiago Delgado Pinto
@@ -1,8 +1,8 @@
import { Document, FileInfo, Variant } from "concordialang-types";
import { LocatedException } from "concordialang-types";
import { Document, FileInfo, Variant } from "../../modules/ast";
import { AugmentedSpec } from "../../modules/req/AugmentedSpec";
import { LocatedException } from "../../modules/dbi/LocatedException";
import { PreTestCaseGenerator, GenContext } from "../../modules/testscenario/PreTestCaseGenerator";
import { SimpleCompiler } from "../../modules/util/SimpleCompiler";
import { AugmentedSpec } from "../../modules/ast/AugmentedSpec";
import { SpecFilter } from "../../modules/selection/SpecFilter";
import { BatchSpecificationAnalyzer } from "../../modules/semantic/BatchSpecificationAnalyzer";
import { TestPlanner } from "../../modules/testcase/TestPlanner";
@@ -12,7 +12,6 @@ import { RandomString } from "../../modules/testdata/random/RandomString";
import { Random } from "../../modules/testdata/random/Random";
import { LongLimits } from "../../modules/testdata/limits/LongLimits";


describe( 'PreTestCaseGeneratorTest', () => {

let gen: PreTestCaseGenerator; // under test
@@ -1,7 +1,8 @@
import * as arrayMove from 'array-move';
import * as deepcopy from 'deepcopy';
import { Step } from 'concordialang-types';
import { Entities } from 'concordialang-types';

import { Step } from '../../modules/ast/Step';
import { Entities } from '../../modules/nlp/Entities';
import { StepUtil } from "../../modules/testscenario/StepUtil";
import { NodeTypes } from '../../modules/req/NodeTypes';
import { KeywordDictionary } from '../../modules/dict/KeywordDictionary';
@@ -1,16 +1,15 @@
import { Document, Variant, FileInfo } from "concordialang-types";
import { LocatedException } from "concordialang-types";
import { Document, Variant, FileInfo } from "../../modules/ast";
import { AugmentedSpec } from "../../modules/req/AugmentedSpec";
import { LocatedException } from "../../modules/dbi/LocatedException";
import { TSGen } from "../../modules/testscenario/TSGen";
import { TestScenario } from "../../modules/testscenario/TestScenario";
import { SimpleCompiler } from "../../modules/util/SimpleCompiler";
import { AllVariantsSelectionStrategy } from "../../modules/selection/VariantSelectionStrategy";
import { AugmentedSpec } from "../../modules/ast/AugmentedSpec";
import { BatchSpecificationAnalyzer } from "../../modules/semantic/BatchSpecificationAnalyzer";
import { SpecFilter } from "../../modules/selection/SpecFilter";
import { CartesianProductStrategy } from "../../modules/selection/CombinationStrategy";
import { PreTestCaseGenerator, GenContext } from "../../modules/testscenario/PreTestCaseGenerator";


describe( 'TSGenTest', () => {

let gen: TSGen = null; // under test
@@ -1,4 +1,4 @@
import { Queryable } from "concordialang-types";
import { Queryable } from "../../modules/dbi";
import { QueryBasedDataGenerator } from "../../modules/testdata/QueryBasedDataGenerator";
import { RandomLong } from "../../modules/testdata/random/RandomLong";
import { Random } from "../../modules/testdata/random/Random";
@@ -1,13 +1,14 @@
import { FileInfo, EntityValueType } from "concordialang-types";
import { join } from "path";

import { FileInfo, EntityValueType } from "../../modules/ast";
import { UIElementValueGenerator, ValueGenContext } from "../../modules/testdata/UIElementValueGenerator";
import { SimpleCompiler } from "../../modules/util/SimpleCompiler";
import { AugmentedSpec } from "../../modules/ast/AugmentedSpec";
import { AugmentedSpec } from "../../modules/req/AugmentedSpec";
import { UIETestPlan } from "../../modules/testcase/UIETestPlan";
import { DataTestCase } from "../../modules/testdata/DataTestCase";
import { DTCAnalysisResult } from "../../modules/testdata/DataTestCaseAnalyzer";
import { BatchSpecificationAnalyzer } from "../../modules/semantic/BatchSpecificationAnalyzer";
import { SpecFilter } from "../../modules/selection/SpecFilter";
import { join } from "path";
import { DataGenerator } from "../../modules/testdata/DataGenerator";
import { DataGeneratorBuilder } from "../../modules/testdata/DataGeneratorBuilder";

@@ -1,4 +1,4 @@
import { Feature, Document, UIElement } from "concordialang-types";
import { Feature, Document, UIElement } from "../../modules/ast";
import { DocumentUtil } from "../../modules/util/DocumentUtil";


@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const AugmentedSpec_1 = require("../ast/AugmentedSpec");
const AugmentedSpec_1 = require("../req/AugmentedSpec");
const SpecFilter_1 = require("../selection/SpecFilter");
const ProcessingInfo_1 = require("./ProcessingInfo");
/**
@@ -8,7 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const concordialang_types_1 = require("concordialang-types");
const fs_1 = require("fs");
const util_1 = require("util");
const ast_1 = require("../ast");
const PreTestCaseGenerator_1 = require("../testscenario/PreTestCaseGenerator");
const TSGen_1 = require("../testscenario/TSGen");
const VariantSelectionStrategy_1 = require("../selection/VariantSelectionStrategy");
@@ -17,12 +19,10 @@ const TCGen_1 = require("../testcase/TCGen");
const TestPlanner_1 = require("../testcase/TestPlanner");
const TCDocGen_1 = require("../testcase/TCDocGen");
const TestCaseFileGenerator_1 = require("../testcase/TestCaseFileGenerator");
const util_1 = require("util");
const RuntimeException_1 = require("../req/RuntimeException");
const fs_1 = require("fs");
const Defaults_1 = require("./Defaults");
const Warning_1 = require("../req/Warning");
const DataTestCaseMix_1 = require("../testcase/DataTestCaseMix");
const Defaults_1 = require("./Defaults");
class TCGenController {
constructor(_listener) {
this._listener = _listener;
@@ -154,7 +154,7 @@ class TCGenController {
case Defaults_1.VariantSelectionOptions.FIRST:
return new VariantSelectionStrategy_1.FirstVariantSelectionStrategy();
case Defaults_1.VariantSelectionOptions.FIRST_MOST_IMPORTANT:
return new VariantSelectionStrategy_1.FirstMostImportantVariantSelectionStrategy(options.importance, [concordialang_types_1.ReservedTags.IMPORTANCE]);
return new VariantSelectionStrategy_1.FirstMostImportantVariantSelectionStrategy(options.importance, [ast_1.ReservedTags.IMPORTANCE]);
case Defaults_1.VariantSelectionOptions.ALL:
return new VariantSelectionStrategy_1.AllVariantsSelectionStrategy();
default: {

0 comments on commit 7e0d9d3

Please sign in to comment.
You can’t perform that action at this time.