Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 2541455

Browse files
committed
Remove redundant benchmark method
1 parent 8709555 commit 2541455

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

test/GitHub.InlineReviews.UnitTests/Models/DiffUtilitiesTests.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -366,23 +366,6 @@ public void CountCarriageReturns_NullText_ArgumentNullException()
366366
{
367367
Assert.Throws<ArgumentNullException>(() => DiffUtilities.LineReader.CountCarriageReturns(null));
368368
}
369-
370-
static void Benchmark_ReadLineAndCountCarriageReturns_100000()
371-
{
372-
373-
var file = new System.Diagnostics.StackFrame(true).GetFileName();
374-
var text = File.ReadAllText(file);
375-
376-
for (int count = 0; count < 100000; count++)
377-
{
378-
var lineReader = new DiffUtilities.LineReader(text);
379-
string line;
380-
while ((line = lineReader.ReadLine()) != null)
381-
{
382-
DiffUtilities.LineReader.CountCarriageReturns(line);
383-
}
384-
}
385-
}
386369
}
387370
}
388371
}

0 commit comments

Comments
 (0)