65 references to TestCoverage
Microsoft.CodeAnalysis (2)
Compilation\Compilation.cs (1)
3288
emitOptions.InstrumentationKinds.Contains(InstrumentationKind.
TestCoverage
),
PEWriter\Members.cs (1)
498
/// Code coverage spans produced by <see cref="InstrumentationKind.
TestCoverage
"/> instrumentation.
Microsoft.CodeAnalysis.CSharp (7)
CommandLine\CSharpCommandLineParser.cs (1)
2008
yield return InstrumentationKind.
TestCoverage
;
Compilation\CSharpCompilation.cs (1)
3509
if ((emittingPdb || moduleBeingBuilt.EmitOptions.InstrumentationKinds.Contains(InstrumentationKind.
TestCoverage
)) &&
Compiler\MethodCompiler.cs (4)
354
if (_emittingPdb || instrumentation.Kinds.Contains(InstrumentationKind.
TestCoverage
))
1037
instrumentation.Kinds.Contains(InstrumentationKind.
TestCoverage
) ||
1043
(instrumentation.Kinds.Contains(InstrumentationKind.
TestCoverage
) || instrumentation.Kinds.Contains(InstrumentationKindExtensions.LocalStateTracing)))
1250
Debug.Assert(!instrumentation.Kinds.Contains(InstrumentationKind.
TestCoverage
));
Lowering\LocalRewriter\LocalRewriter.cs (1)
120
if (instrumentation.Kinds.Contains(InstrumentationKind.
TestCoverage
) &&
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
4039
Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
4043
Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
4047
Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
4051
Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
4055
Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
4059
Assert.True(parsedArgs.EmitOptions.InstrumentationKinds.SequenceEqual(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (19)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (14)
76
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
220
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
340
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
434
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
491
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
530
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
561
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
601
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
669
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
750
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
831
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
925
var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
980
var emitOptions = EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
));
1019
var emitOptions = EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
));
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (5)
2450
ImmutableArray<Diagnostic> diagnostics = CreateEmptyCompilation(source + InstrumentationHelperSource).GetEmitDiagnostics(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
2961
var verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
2997
var verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
3648
emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)),
3663
return base.CompileAndVerify(compilation, expectedOutput: expectedOutput, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\LocalStateTracing\LocalStateTracingTests.cs (2)
233
InstrumentationKind.
TestCoverage
,
364
emitOptions: GetEmitOptions(InstrumentationKindExtensions.LocalStateTracing, InstrumentationKind.
TestCoverage
),
Microsoft.CodeAnalysis.Test.Utilities (1)
InstrumentationChecker.cs (1)
322
var peImage = compilation.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)));
Microsoft.CodeAnalysis.UnitTests (4)
Emit\EmitOptionsTests.cs (3)
67
TestProperty((old, value) => old.WithInstrumentationKinds(value), opt => opt.InstrumentationKinds, ImmutableArray.Create(InstrumentationKind.
TestCoverage
));
126
instrumentationKinds: ImmutableArray.Create(InstrumentationKind.
TestCoverage
));
140
instrumentationKinds: ImmutableArray.Create(InstrumentationKind.
TestCoverage
),
Emit\SemanticEditTests.cs (1)
38
var instrumentation = new MethodInstrumentation() { Kinds = ImmutableArray.Create(InstrumentationKind.
TestCoverage
) };
Microsoft.CodeAnalysis.VisualBasic (4)
CommandLine\VisualBasicCommandLineParser.vb (1)
2105
Yield InstrumentationKind.
TestCoverage
Compilation\MethodCompiler.vb (1)
114
If _emittingPdb OrElse instrumentations.Kinds.Contains(InstrumentationKind.
TestCoverage
) Then
Compilation\VisualBasicCompilation.vb (1)
2492
If (emittingPdb OrElse moduleBuilder.EmitOptions.InstrumentationKinds.Contains(InstrumentationKind.
TestCoverage
)) AndAlso
Lowering\Rewriter.vb (1)
51
If(Not isBodySynthesized AndAlso instrumentations.Kinds.Contains(InstrumentationKind.
TestCoverage
),
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (6)
CommandLineTests.vb (6)
894
Assert.True(args.EmitOptions.InstrumentationKinds.SequenceEqual({InstrumentationKind.
TestCoverage
}))
898
Assert.True(args.EmitOptions.InstrumentationKinds.SequenceEqual({InstrumentationKind.
TestCoverage
}))
902
Assert.True(args.EmitOptions.InstrumentationKinds.SequenceEqual({InstrumentationKind.
TestCoverage
}))
906
Assert.True(args.EmitOptions.InstrumentationKinds.SequenceEqual({InstrumentationKind.
TestCoverage
}))
910
Assert.True(args.EmitOptions.InstrumentationKinds.SequenceEqual({InstrumentationKind.
TestCoverage
}))
914
Assert.True(args.EmitOptions.InstrumentationKinds.SequenceEqual({InstrumentationKind.
TestCoverage
}))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (14)
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (8)
76
Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
193
Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
293
Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
361
Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
455
Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
560
Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
650
Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
747
Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (6)
1915
Dim diagnostics As ImmutableArray(Of Diagnostic) = CreateCompilation(source).GetEmitDiagnostics(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
2345
Dim verifier = CompileAndVerify(c, emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
2382
Dim verifier = CompileAndVerify(c, emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
2819
emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
2827
emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)))
2835
emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.
TestCoverage
)),