File tree 1 file changed +4
-2
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,15 @@ class InstrumentCoverage extends MacroTransform with IdentityDenotTransformer:
69
69
Serializer .serialize(coverage, outputPath, ctx.settings.sourceroot.value)
70
70
71
71
private def isClassIncluded (sym : Symbol )(using Context ): Boolean =
72
+ val fqn = sym.fullName.toText(ctx.printerFn(ctx)).show
72
73
coverageExcludeClasslikePatterns.isEmpty || ! coverageExcludeClasslikePatterns.exists(
73
- _.matcher(sym.fullName.toText(ctx.printerFn(ctx)).show ).nn.matches
74
+ _.matcher(fqn ).nn.matches
74
75
)
75
76
76
77
private def isFileIncluded (file : SourceFile )(using Context ): Boolean =
78
+ val normalizedPath = file.path.replace(" .scala" , " " )
77
79
coverageExcludeFilePatterns.isEmpty || ! coverageExcludeFilePatterns.exists(
78
- _.matcher(file.path.replace( " .scala " , " " ) ).nn.matches
80
+ _.matcher(normalizedPath ).nn.matches
79
81
)
80
82
81
83
override protected def newTransformer (using Context ) =
You can’t perform that action at this time.
0 commit comments