Skip to content

Commit c3ac29c

Browse files
committed
minor rename
1 parent f2ef7ea commit c3ac29c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/NoStringEvaluating.Tests/PerfTests/PerformanceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void Setup()
4545
}
4646

4747
[TestCaseSource(nameof(RunSource))]
48-
public void RunFormula(string formulaName, string formula, IDictionary<string, EvaluatorValue> args, long targetElapsedMilliseconds)
48+
public void RunFormula(string formulaName, string formula, IDictionary<string, EvaluatorValue> args, long thresholdMilliseconds)
4949
{
5050
// arrange
5151
var n = 1_000_000;
@@ -63,7 +63,7 @@ public void RunFormula(string formulaName, string formula, IDictionary<string, E
6363

6464
ela.Stop();
6565

66-
_report.Append(formulaName, res, ela.ElapsedMilliseconds, targetElapsedMilliseconds);
66+
_report.Append(formulaName, res, ela.ElapsedMilliseconds, thresholdMilliseconds);
6767
}
6868

6969
private static IEnumerable<object[]> RunSource()

tests/NoStringEvaluating.Tests/PerfTests/Report/ReportContainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ internal class ReportContainer
44
{
55
public List<ReportItem> Items = [];
66

7-
public void Append(string formula, double result, long elapsedMilliseconds, long targetElapsedMilliseconds)
7+
public void Append(string formula, double result, long elapsedMilliseconds, long thresholdMilliseconds)
88
{
9-
Items.Add(new ReportItem(formula, result, elapsedMilliseconds, targetElapsedMilliseconds));
9+
Items.Add(new ReportItem(formula, result, elapsedMilliseconds, thresholdMilliseconds));
1010
}
1111
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace NoStringEvaluating.Tests.PerfTests.Report;
22

3-
internal record ReportItem(string Formula, double Result, long ElapsedMilliseconds, long TargetElapsedMilliseconds)
3+
internal record ReportItem(string Formula, double Result, long ElapsedMilliseconds, long ThresholdMilliseconds)
44
{
5-
public bool Attention => ElapsedMilliseconds > TargetElapsedMilliseconds;
5+
public bool Attention => ElapsedMilliseconds > ThresholdMilliseconds;
66
}

0 commit comments

Comments
 (0)