Skip to content

Commit c8ad091

Browse files
committed
test
1 parent daf7dca commit c8ad091

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/coverlet.core/Abstractions/ISourceRootTranslator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace Coverlet.Core.Abstractions
88
{
99
internal interface ISourceRootTranslator
1010
{
11+
int SourceRootMappingCount { get; }
1112
bool AddMappingInCache(string originalFileName, string targetFileName);
1213
string ResolveFilePath(string originalFileName);
1314
string ResolveDeterministicPath(string originalFileName);

src/coverlet.core/Helpers/InstrumentationHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ private bool MatchDocumentsWithSources(string module, AssemblySearchType exclude
230230
}));
231231

232232
var foo = string.Join(Environment.NewLine, docsourcemap.Select(x => x.ToString()));
233-
throw new Exception($"DOCSOURCEMAP: {foo} {Environment.NewLine} DOCNAME: {documentNames}");
233+
throw new Exception($"DOCSOURCEMAP: {foo} {Environment.NewLine} DOCNAME: {documentNames} {Environment.NewLine} COUNT: {_sourceRootTranslator.SourceRootMappingCount}");
234234
}
235235

236236
return docsourcemap;

src/coverlet.core/Helpers/SourceRootTranslator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ internal class SourceRootTranslator : ISourceRootTranslator
2525
private readonly string _mappingFileName;
2626
private Dictionary<string, string> _resolutionCacheFiles;
2727

28+
public int SourceRootMappingCount => _sourceRootMapping.Count;
29+
2830
public SourceRootTranslator(ILogger logger, IFileSystem fileSystem)
2931
{
3032
_logger = logger ?? throw new ArgumentNullException(nameof(logger));

0 commit comments

Comments
 (0)