本文整理汇总了TypeScript中tastee-core.TasteeCore类的典型用法代码示例。如果您正苦于以下问题:TypeScript TasteeCore类的具体用法?TypeScript TasteeCore怎么用?TypeScript TasteeCore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TasteeCore类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: _managePlugin
private _managePlugin(data: Array<String>, pathToAnalyse: string): boolean {
const regex = AppConfig.keyword_to_include_yaml_file;
let match;
let pluginTreated = false;
while (match = regex.exec(data.join('\n'))) {
switch (path.extname(match[1])) {
case AppConfig.tastee_config_file_ext:
this.core.addPluginFile(this._getPathOfFile(pathToAnalyse, match[1]));
pluginTreated = true;
break;
case AppConfig.tastee_properties_file_ext:
console.log(this._getPathOfFile(pathToAnalyse, match[1]));
this.core.addParamFile(this._getPathOfFile(pathToAnalyse, match[1]));
break;
}
}
return pluginTreated;
}
示例2: _runTasteeCode
private _runTasteeCode(data: Array<String>, pathToAnalyse?: string): any {
return this.core.execute(data.join('\n'), pathToAnalyse);
}
示例3: stopTastee
stopTastee() {
console.log('STOPING Tastee ....');
this.core.stop();
}
示例4: startTastee
startTastee() {
console.log('STARTING Tastee ....');
this.core.init(new TasteeEngine(this.sessionService.getSession().browser));
}
示例5: workingByFile
workingByFile(pathToAnalyse: string): Promise<any> {
this.core.init(new TasteeEngine(this.sessionService.getSession().browser))
const data = ExtractTasteeCode.extract(pathToAnalyse);
this._managePlugin(data, pathToAnalyse);
return this._runTasteeCode(data, pathToAnalyse);
}