All files / src/strategies strategy.js

14.28% Statements 1/7
100% Branches 0/0
0% Functions 0/6
14.28% Lines 1/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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                                                                  3x  
/**
 * 分析策略接口(Strategy Pattern)
 * 
 * 定义所有分析策略必须实现的接口
 * 每种问题类型(技术/商业/人生/学术)有独立的策略
 */
 
class AnalysisStrategy {
  getName() {
    throw new Error('getName() must be implemented');
  }
 
  identifyAssumptions(problem) {
    throw new Error('identifyAssumptions() must be implemented');
  }
 
  getWhyQuestion(problem, level) {
    throw new Error('getWhyQuestion() must be implemented');
  }
 
  getTruthVerificationCriteria() {
    throw new Error('getTruthVerificationCriteria() must be implemented');
  }
 
  generateSolutions(fundamentalTruths) {
    throw new Error('generateSolutions() must be implemented');
  }
 
  getComparisonDimensions() {
    throw new Error('getComparisonDimensions() must be implemented');
  }
}
 
module.exports = { AnalysisStrategy };