diff options
author | Mateo Torres-Ruiz <mateoatr@users.noreply.github.com> | 2021-10-19 01:03:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 01:03:30 +0300 |
commit | 3418bcd1d864ce7f62d789c8961f9c2d750fb079 (patch) | |
tree | 611dbace8908c89ead7a59df7e8ad0a97501df8c /test/Mono.Linker.Tests.Cases.Expectations/Assertions | |
parent | ef00d382d9761e89938fbce31ca13fe3a5c0b839 (diff) |
Add COMAnalyzer (#2306)
* Add COM Analyzer
* Add IsComInterop
Run Interop tests
* PR feedback
* Rename variables in GetTestFilesByDirName
* Extend ProducedBy with enum values for each supported analyzer
* Lint
* PR feedback
* Return ProducedBy instead of list
Diffstat (limited to 'test/Mono.Linker.Tests.Cases.Expectations/Assertions')
-rw-r--r-- | test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs index b18578c3d..6b441975e 100644 --- a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs +++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/ProducedBy.cs @@ -5,11 +5,19 @@ using System; namespace Mono.Linker.Tests.Cases.Expectations.Assertions { + /// <summary> + /// Used to specify which tool produces a warning. This can either be the trimmer, a specific analyzer, or both. + /// Currently we have all existing diagnostic analyzers listed in here so that we can leave out some expected warnings + /// when testing analyzers which do not produce them. + /// </summary> [Flags] public enum ProducedBy { Trimmer = 1, - Analyzer = 2, + RequiresAssemblyFileAnalyzer = 2, + RequiresUnreferencedCodeAnalyzer = 4, + COMAnalyzer = 8, + Analyzer = RequiresAssemblyFileAnalyzer | RequiresUnreferencedCodeAnalyzer | COMAnalyzer, TrimmerAndAnalyzer = Trimmer | Analyzer } }
\ No newline at end of file |