本文整理匯總了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);
}