Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
daveMueller committed Mar 11, 2023
1 parent daf7dca commit c8ad091
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/coverlet.core/Abstractions/ISourceRootTranslator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace Coverlet.Core.Abstractions
{
internal interface ISourceRootTranslator
{
int SourceRootMappingCount { get; }
bool AddMappingInCache(string originalFileName, string targetFileName);
string ResolveFilePath(string originalFileName);
string ResolveDeterministicPath(string originalFileName);
Expand Down
2 changes: 1 addition & 1 deletion src/coverlet.core/Helpers/InstrumentationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private IEnumerable<(string documentName, bool documentExists)> DocumentSourceMa
}));

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

return docsourcemap;
Expand Down
2 changes: 2 additions & 0 deletions src/coverlet.core/Helpers/SourceRootTranslator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ internal class SourceRootTranslator : ISourceRootTranslator
private readonly string _mappingFileName;
private Dictionary<string, string> _resolutionCacheFiles;

public int SourceRootMappingCount => _sourceRootMapping.Count;

public SourceRootTranslator(ILogger logger, IFileSystem fileSystem)
{
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
Expand Down

0 comments on commit c8ad091

Please sign in to comment.