Skip to content

Commit

Permalink
Revert "Implement analyzer for salary-calculator (#155)"
Browse files Browse the repository at this point in the history
This reverts commit 0aa03ed.
  • Loading branch information
manumafe98 authored Mar 29, 2024
1 parent 0aa03ed commit fd9ea7a
Show file tree
Hide file tree
Showing 36 changed files with 0 additions and 738 deletions.
2 changes: 0 additions & 2 deletions src/main/java/analyzer/AnalyzerRoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import analyzer.exercises.leap.LeapAnalyzer;
import analyzer.exercises.loglevels.LogLevelsAnalyzer;
import analyzer.exercises.needforspeed.NeedForSpeedAnalyzer;
import analyzer.exercises.salarycalculator.SalaryCalculatorAnalyzer;
import analyzer.exercises.secrets.SecretsAnalyzer;
import analyzer.exercises.twofer.TwoferAnalyzer;
import analyzer.exercises.wizardsandwarriors.WizardsAndWarriorsAnalyzer;
Expand Down Expand Up @@ -57,7 +56,6 @@ private static List<Analyzer> createAnalyzers(String slug) {
case "leap" -> analyzers.add(new LeapAnalyzer());
case "log-levels" -> analyzers.add(new LogLevelsAnalyzer());
case "need-for-speed" -> analyzers.add(new NeedForSpeedAnalyzer());
case "salary-calculator" -> analyzers.add(new SalaryCalculatorAnalyzer());
case "secrets" -> analyzers.add(new SecretsAnalyzer());
case "two-fer" -> analyzers.add(new TwoferAnalyzer());
case "wizards-and-warriors" -> analyzers.add(new WizardsAndWarriorsAnalyzer());
Expand Down

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions src/test/java/analyzer/AnalyzerIntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,25 +184,4 @@ void wizardsandwarriors(String scenario) throws IOException {

Approvals.verify(serialize(output.analysis()), Approvals.NAMES.withParameters(scenario));
}

@ParameterizedTest
@ValueSource(strings = {
"ExemplarSolution",
"NoReuseBonusForProductsSold",
"NoReuseBonusMultiplier",
"NoReuseSalaryMultiplier",
"NotReusingMethodsAtAll",
"NotUsingTernaryOperatorsAndNotReusingMethods",
"NotUsingTernaryOperatorsAtAll",
"NotUsingTernaryOperatorsOnBonusMultiplier",
"NotUsingTernaryOperatorsOnFinalSalary",
"NotUsingTernaryOperatorsOnSalaryMultiplier"
})
void salarycalculator(String scenario) throws IOException {
var path = Path.of("salary-calculator", scenario + ".java");
var solution = new SolutionFromFiles("salary-calculator", SCENARIOS.resolve(path));
var output = AnalyzerRoot.analyze(solution);

Approvals.verify(serialize(output.analysis()), Approvals.NAMES.withParameters(scenario));
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit fd9ea7a

Please sign in to comment.