Skip to content

Supporting workspaces on giant binlogs #396

Supporting workspaces on giant binlogs

Supporting workspaces on giant binlogs #396

GitHub Actions / .NET Test Results succeeded Nov 5, 2024 in 1s

868 passed, 0 failed and 5 skipped

Tests passed successfully

Report Passed Failed Skipped Time
TestResults-Test-Linux.trx 318✅ 3⚪ 205s
TestResults-Test-Windows-Core.trx 324✅ 1⚪ 304s
TestResults-Test-Windows-Framework.trx 226✅ 1⚪ 178s

✅ TestResults-Test-Linux.trx

321 tests were completed in 205s with 318 passed, 0 failed and 3 skipped.

Test suite Passed Failed Skipped Time
Basic.CompilerLog.UnitTests.BasicAnalyzerHostTests 5✅ 164ms
Basic.CompilerLog.UnitTests.BinaryLogReaderTests 20✅ 18s
Basic.CompilerLog.UnitTests.BinaryLogUtilTests 15✅ 1⚪ 3ms
Basic.CompilerLog.UnitTests.CodeAnalysisExtensionsTests 1✅ 4s
Basic.CompilerLog.UnitTests.CommonUtilTests 2✅ 1ms
Basic.CompilerLog.UnitTests.CompilationDataTests 13✅ 10s
Basic.CompilerLog.UnitTests.CompilationTaskDataTests 2✅ 3ms
Basic.CompilerLog.UnitTests.CompilerCallReaderUtilTests 4✅ 5ms
Basic.CompilerLog.UnitTests.CompilerCallTests 1✅ 0ms
Basic.CompilerLog.UnitTests.CompilerLogBuilderTests 4✅ 3s
Basic.CompilerLog.UnitTests.CompilerLogReaderExTests 4✅ 992ms
Basic.CompilerLog.UnitTests.CompilerLogReaderTests 43✅ 1⚪ 38s
Basic.CompilerLog.UnitTests.CompilerLogUtilTests 1✅ 1ms
Basic.CompilerLog.UnitTests.ExportUtilTests 15✅ 16s
Basic.CompilerLog.UnitTests.ExtensionsTests 3✅ 10ms
Basic.CompilerLog.UnitTests.FilterOptionSetTest 1✅ 5ms
Basic.CompilerLog.UnitTests.LogReaderStateTests 3✅ 2ms
Basic.CompilerLog.UnitTests.MetadataTests 5✅ 3ms
Basic.CompilerLog.UnitTests.MSBuildProjectDataTests 1✅ 0ms
Basic.CompilerLog.UnitTests.PathNormalizationUtilTests 30✅ 16ms
Basic.CompilerLog.UnitTests.PathUtilTests 1✅ 0ms
Basic.CompilerLog.UnitTests.PolyfillTests 6✅ 10ms
Basic.CompilerLog.UnitTests.ProgramTests 81✅ 1⚪ 57s
Basic.CompilerLog.UnitTests.ResilientDirectoryTests 4✅ 2ms
Basic.CompilerLog.UnitTests.RoslynUtilTests 26✅ 5ms
Basic.CompilerLog.UnitTests.SdkUtilTests 1✅ 0ms
Basic.CompilerLog.UnitTests.SolutionReaderTests 5✅ 3s
Basic.CompilerLog.UnitTests.StringStreamTests 8✅ 76ms
Basic.CompilerLog.UnitTests.UsingAllCompilerLogTests 13✅ 38s

✅ Basic.CompilerLog.UnitTests.BasicAnalyzerHostTests

✅ Error
✅ NoneConflictingFileNames
✅ NoneDispose
✅ NoneProps
✅ Supported

✅ Basic.CompilerLog.UnitTests.BinaryLogReaderTests

✅ CreateFilePath(basicAnalyzerKind: InMemory)
✅ CreateFilePath(basicAnalyzerKind: OnDisk)
✅ CreateFilePathLogReaderState
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream1(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ DisposeDouble
✅ GetCompilationSimple(basicAnalyzerKind: InMemory)
✅ GetCompilationSimple(basicAnalyzerKind: None)
✅ GetCompilationSimple(basicAnalyzerKind: OnDisk)
✅ ReadAllCompilerCallsTwice
✅ ReadCommandLineArgumentsOwnership
✅ ReadDeletedPdb
✅ ReadGeneratedFiles
✅ VerifyBasicAnalyzerKind(basicAnalyzerKind: InMemory)
✅ VerifyBasicAnalyzerKind(basicAnalyzerKind: None)
✅ VerifyBasicAnalyzerKind(basicAnalyzerKind: OnDisk)

✅ Basic.CompilerLog.UnitTests.BinaryLogUtilTests

✅ ParseCompilerAndArgumentsBad(inputArgs: "   ")
✅ ParseCompilerAndArgumentsBad(inputArgs: "dotnet csc2 what we expect a.cs")
✅ ParseCompilerAndArgumentsBad(inputArgs: "dotnet exec vbc.dll what we expect a.cs")
✅ ParseCompilerAndArgumentsBad(inputArgs: "dotnet not what we expect a.cs")
✅ ParseCompilerAndArgumentsBad(inputArgs: "empty")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "csc.exe a.cs b.cs", expectedCompilerFilePath: "csc.exe", expectedArgs: "a.cs b.cs")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "dotnet exec csc.dll a.cs", expectedCompilerFilePath: "csc.dll", expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "dotnet-can-be-any-host-name exec csc.dll a.cs", expectedCompilerFilePath: "csc.dll", expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "dotnet.exe exec csc.dll a.cs", expectedCompilerFilePath: "csc.dll", expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCscUnix(inputArgs: "/dotnet/dotnet exec /dotnet/sdk/bincore/csc.dll a."···, expectedCompilerFilePath: "/dotnet/sdk/bincore/csc.dll", expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCscUnix(inputArgs: "/dotnet/dotnet exec \"/dotnet/sdk/bincore/csc.dll\"···, expectedCompilerFilePath: "/dotnet/sdk/bincore/csc.dll", expectedArgs: "a.cs")
⚪ ParseCompilerAndArgumentsCscWindows
✅ ParseCompilerAndArgumentsNull
✅ ParseCompilerAndArgumentsVbc(inputArgs: "dotnet-can-be-any-host-name exec vbc.dll a.vb", expectedCompilerFilePath: "vbc.dll", expectedArgs: "a.vb")
✅ ParseCompilerAndArgumentsVbc(inputArgs: "dotnet.exe exec vbc.dll a.cs", expectedCompilerFilePath: "vbc.dll", expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsVbc(inputArgs: "vbc.exe a.cs b.cs", expectedCompilerFilePath: "vbc.exe", expectedArgs: "a.cs b.cs")

✅ Basic.CompilerLog.UnitTests.CodeAnalysisExtensionsTests

✅ EmitToMemory

✅ Basic.CompilerLog.UnitTests.CommonUtilTests

✅ Defines
✅ GetAssemblyLoadContext

✅ Basic.CompilerLog.UnitTests.CompilationDataTests

✅ EmitToMemoryCombinations
✅ EmitToMemoryRefOnly
✅ GetAllDiagnostics(basicAnalyzerKind: InMemory)
✅ GetAllDiagnostics(basicAnalyzerKind: None)
✅ GetAllDiagnostics(basicAnalyzerKind: OnDisk)
✅ GetAllDiagnosticsNoAnalyzers
✅ GetAnalyzersNoHosting
✅ GetAnalyzersNormal
✅ GetCompilationAfterGeneratorsDiagnostics
✅ GetDiagnostics
✅ GetGeneratedSyntaxTrees(basicAnalyzerKind: InMemory)
✅ GetGeneratedSyntaxTrees(basicAnalyzerKind: None)
✅ GetGeneratedSyntaxTrees(basicAnalyzerKind: OnDisk)

✅ Basic.CompilerLog.UnitTests.CompilationTaskDataTests

✅ TryCreateCompilerCallBadArguments
✅ TryCreateCompilerNoArguments

✅ Basic.CompilerLog.UnitTests.CompilerCallReaderUtilTests

✅ CreateBadExtension
✅ GetAllAnalyzerKinds(basicAnalyzerKind: InMemory)
✅ GetAllAnalyzerKinds(basicAnalyzerKind: None)
✅ GetAllAnalyzerKinds(basicAnalyzerKind: OnDisk)

✅ Basic.CompilerLog.UnitTests.CompilerCallTests

✅ GetDiagnosticNameNoTargetFramework

✅ Basic.CompilerLog.UnitTests.CompilerLogBuilderTests

✅ AddMissingFile
✅ AddWithMissingCompilerFilePath
✅ CloseTwice
✅ PortablePdbMissing

✅ Basic.CompilerLog.UnitTests.CompilerLogReaderExTests

✅ AnalyzerConfigGeneratedCode(value: "0", expectedKind: Unknown)
✅ AnalyzerConfigGeneratedCode(value: "false", expectedKind: NotGenerated)
✅ AnalyzerConfigGeneratedCode(value: "true", expectedKind: MarkedGenerated)
✅ AnalyzerConfigNone

✅ Basic.CompilerLog.UnitTests.CompilerLogReaderTests

✅ AdditionalFiles
✅ AnalyzerDiagnostics
✅ AnalyzerLoadCaching(kind: InMemory)
✅ AnalyzerLoadCaching(kind: OnDisk)
✅ AnalyzerLoadDispose(kind: InMemory)
✅ AnalyzerLoadDispose(kind: OnDisk)
✅ AnalyzerLoadOptions(basicAnalyzerKind: InMemory)
✅ AnalyzerLoadOptions(basicAnalyzerKind: None)
✅ AnalyzerLoadOptions(basicAnalyzerKind: OnDisk)
✅ ContentExtraSourceFile(fileName: "file1.cs")
✅ ContentExtraSourceFile(fileName: "file2.cs")
✅ CreateInvalidZipFile
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream1(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ Disposed
✅ EmbedLineIssues
✅ GlobalConfigPathMap
✅ KeyFileCustomState
✅ KeyFileDefault
⚪ KindWpf
✅ MetadataCompatV1(resourceName: "MetadataVersion1.console.complog")
✅ MetadataCompatV2(resourceName: "MetadataVersion2.console.complog")
✅ MetadataVersion
✅ NoneHostAddsNoGeneratorIfNoGeneratedSource
✅ NoneHostGeneratedFilesInRaw
✅ NoneHostGeneratedFilesShouldBeLast
✅ NoneHostHasSingelGenerator
✅ NoneHostNativePdb
✅ ProjectMultiTarget
✅ ProjectReferences_Corrupted
✅ ProjectReferences_ReadReference
✅ ProjectReferences_Simple
✅ ProjectSingleTarget
✅ ReadCompilationDataBadIndex(index: -1)
✅ ReadCompilationDataBadIndex(index: 100)
✅ ReadCompilerCallBadIndex(index: -1)
✅ ReadCompilerCallBadIndex(index: 100)
✅ ReadCompilerCallWrongOwner
✅ ResourceSimpleEmbedded
✅ VisualBasic

✅ Basic.CompilerLog.UnitTests.CompilerLogUtilTests

✅ CreateBadExtension

✅ Basic.CompilerLog.UnitTests.ExportUtilTests

✅ ConsoleMultiTarget
✅ ConsoleWithLink
✅ ConsoleWithRuleset
✅ EmbedLineInsideProject
✅ ExportAll
✅ ExportAllBadPath
✅ ExportNoconfig
✅ ExportRsp1
✅ ExportRsp2
✅ ExportUnixPaths
✅ ExportWithUnsafeOption
✅ GeneratedText
✅ GeneratedTextExcludeAnalyzers
✅ GlobalConfigMapsPaths
✅ StrongNameKey

✅ Basic.CompilerLog.UnitTests.ExtensionsTests

✅ AddRange
✅ CheckEmitFlags
✅ GetFailureString

✅ Basic.CompilerLog.UnitTests.FilterOptionSetTest

✅ CheckForAnalyzers

✅ Basic.CompilerLog.UnitTests.LogReaderStateTests

✅ CustomAssemblyLoadContext
✅ DisposeCleansUpDirectories
✅ DisposeDirectoryLocked

✅ Basic.CompilerLog.UnitTests.MetadataTests

✅ ParseBadCount
✅ ParseBadFormat
✅ ParseBadVersion
✅ ParseVersion0
✅ ParseVersion1

✅ Basic.CompilerLog.UnitTests.MSBuildProjectDataTests

✅ MSBuildProjectDataToString

✅ Basic.CompilerLog.UnitTests.PathNormalizationUtilTests

✅ EmptyIsRooted
✅ UnixIsRooted(path: "../", expected: False)
✅ UnixIsRooted(path: "/", expected: True)
✅ UnixIsRooted(path: "/blah", expected: True)
✅ UnixIsRooted(path: "/code/blah.cs", expected: True)
✅ UnixIsRooted(path: "example/blah.cs", expected: False)
✅ UnixIsRooted(path: null, expected: False)
✅ UnixToWindowsNormalize(path: "/", expected: "c:\\code\\")
✅ UnixToWindowsNormalize(path: "/example", expected: "c:\\code\\example")
✅ UnixToWindowsNormalize(path: "/example/../blah.cs", expected: "c:\\code\\example\\..\\blah.cs")
✅ UnixToWindowsNormalize(path: "/example/", expected: "c:\\code\\example\\")
✅ UnixToWindowsNormalize(path: "/example/blah.cs", expected: "c:\\code\\example\\blah.cs")
✅ UnixToWindowsNormalize(path: null, expected: null)
✅ UnixToWindowsRootFileName(fileName: "a.cs", expected: "c:\\code\\a.cs")
✅ UnixToWindowsRootFileName(fileName: "example.cs", expected: "c:\\code\\example.cs")
✅ WindowsIsRooted(path: "\\..\\", expected: False)
✅ WindowsIsRooted(path: "c:", expected: True)
✅ WindowsIsRooted(path: "c:\\..\\", expected: True)
✅ WindowsIsRooted(path: "c:\\", expected: True)
✅ WindowsIsRooted(path: "c:\\\\\\", expected: True)
✅ WindowsIsRooted(path: "example\\blah.cs", expected: False)
✅ WindowsIsRooted(path: null, expected: False)
✅ WindowsToUnixNormalize(path: "c:\\", expected: "/code/")
✅ WindowsToUnixNormalize(path: "c:\\\\", expected: "/code/")
✅ WindowsToUnixNormalize(path: "c:\\\\\\", expected: "/code/")
✅ WindowsToUnixNormalize(path: "c:\\src\\..\\blah.cs", expected: "/code/src/../blah.cs")
✅ WindowsToUnixNormalize(path: "c:\\src\\blah.cs", expected: "/code/src/blah.cs")
✅ WindowsToUnixNormalize(path: null, expected: null)
✅ WindowsToUnixRootFileName(fileName: "a.cs", expected: "/code/a.cs")
✅ WindowsToUnixRootFileName(fileName: "example.cs", expected: "/code/example.cs")

✅ Basic.CompilerLog.UnitTests.PathUtilTests

✅ RemovePathStart

✅ Basic.CompilerLog.UnitTests.PolyfillTests

✅ ContainsCharSimple
✅ GetByteCountEmpty
✅ GetBytesCountEmpty
✅ ReadExactlyTooMany
✅ WriteLineSimple
✅ WriteSimple

✅ Basic.CompilerLog.UnitTests.ProgramTests

✅ AnalyzerBadOption
✅ AnalyzersBoth
✅ AnalyzersHelp
✅ AnalyzersProjectFilesDeleted
✅ BadCommand
✅ Create(extra: "--out custom.complog", fileName: "custom.complog")
✅ Create(extra: "-o custom.complog", fileName: "custom.complog")
✅ Create(extra: "", fileName: "msbuild.complog")
✅ CreateEmpty
✅ CreateExistingComplog
✅ CreateExtraArguments
✅ CreateFullPath
✅ CreateHelp(arg: "-h")
✅ CreateHelp(arg: "-help")
✅ CreateNoopBuild
✅ CreateOverRemovedProject
✅ CreateProjectFile
✅ CreateWithBuild
✅ ExportBadOption
✅ ExportCompilerLog(arg: "-a none", expectedKind: None)
✅ ExportCompilerLog(arg: "-a ondisk", expectedKind: OnDisk)
✅ ExportCompilerLog(arg: "", expectedKind: null)
✅ ExportHelp
✅ GeneratedBadArg
✅ GeneratedBadFilter
✅ GeneratedBoth(basicAnalyzerKind: InMemory)
✅ GeneratedBoth(basicAnalyzerKind: None)
✅ GeneratedBoth(basicAnalyzerKind: OnDisk)
✅ GeneratedHelp
✅ GeneratePdbMissing
✅ Help(arg: "")
✅ Help(arg: "help")
✅ HelpVerbose
✅ PrintAll
✅ PrintBadFile
✅ PrintCompilers
✅ PrintDiffMetadata(metadataVersion: 1)
✅ PrintDiffMetadata(metadataVersion: 100)
✅ PrintDirectory
✅ PrintEmptyDirectory
✅ PrintError
✅ PrintFrameworks
✅ PrintHelp
⚪ PrintKinds
✅ PrintOne
✅ PrintWithoutProject
✅ References
✅ ReferencesBadOption
✅ ReferencesHelp
✅ ReplayBadOption
✅ ReplayConsoleWithEmit(arg: "--none")
✅ ReplayConsoleWithEmit(arg: "")
✅ ReplayHelp
✅ ReplayMissingOutput
✅ ReplayNewCompiler
✅ ReplayWithArgs(command: "diagnostics", arg: "--none", kind: None)
✅ ReplayWithArgs(command: "emit", arg: "--none", kind: None)
✅ ReplayWithArgs(command: "replay", arg: "--analyzers inmemory", kind: InMemory)
✅ ReplayWithArgs(command: "replay", arg: "--analyzers none", kind: None)
✅ ReplayWithArgs(command: "replay", arg: "--analyzers ondisk", kind: OnDisk)
✅ ReplayWithArgs(command: "replay", arg: "--none", kind: None)
✅ ReplayWithArgs(command: "replay", arg: "--severity Error", kind: null)
✅ ReplayWithArgs(command: "replay", arg: "", kind: null)
✅ ReplayWithBadProject
✅ ReplayWithBothLogs
✅ ReplayWithDiagnostics
✅ ReplayWithProject
✅ ResponseAll
✅ ResponseBadOption
✅ ResponseHelp
✅ ResponseInline
✅ ResponseInlineMultiTarget
✅ ResponseInlineWithOutput
✅ ResponseLinuxComplog
✅ ResponseMultiTarget
✅ ResponseNoLogArgument
✅ ResponseNoLogAvailable
✅ ResponseOnCompilerLog
✅ ResponseOnInvalidFileType
✅ ResponseOutputPath
✅ ResponseProjectFilter
✅ ResponseSingleLine

✅ Basic.CompilerLog.UnitTests.ResilientDirectoryTests

✅ GetNewFilePath1
✅ GetNewFilePath2
✅ GetNewFilePathFlatten1
✅ GetNewFilePathFlatten2

✅ Basic.CompilerLog.UnitTests.RoslynUtilTests

✅ GetAssemblyFileName(commandLine: "/target:exe", expectedFileName: "app.exe")
✅ GetAssemblyFileName(commandLine: "/target:library other.cs", expectedFileName: "other.dll")
✅ GetAssemblyFileName(commandLine: "/target:library", expectedFileName: "app.dll")
✅ GetAssemblyFileName(commandLine: "/target:module other.cs", expectedFileName: "other.netmodule")
✅ GetAssemblyFileName(commandLine: "/target:module", expectedFileName: "app.netmodule")
✅ GetAssemblyFileName(commandLine: "/target:winexe", expectedFileName: "app.exe")
✅ IsGlobalConfig(data: IsGlobalConfigData-0)
✅ IsGlobalConfig(data: IsGlobalConfigData-1)
✅ IsGlobalConfig(data: IsGlobalConfigData-10)
✅ IsGlobalConfig(data: IsGlobalConfigData-11)
✅ IsGlobalConfig(data: IsGlobalConfigData-12)
✅ IsGlobalConfig(data: IsGlobalConfigData-13)
✅ IsGlobalConfig(data: IsGlobalConfigData-14)
✅ IsGlobalConfig(data: IsGlobalConfigData-2)
✅ IsGlobalConfig(data: IsGlobalConfigData-3)
✅ IsGlobalConfig(data: IsGlobalConfigData-4)
✅ IsGlobalConfig(data: IsGlobalConfigData-5)
✅ IsGlobalConfig(data: IsGlobalConfigData-6)
✅ IsGlobalConfig(data: IsGlobalConfigData-7)
✅ IsGlobalConfig(data: IsGlobalConfigData-8)
✅ IsGlobalConfig(data: IsGlobalConfigData-9)
✅ ParseAllCSharpEmpty
✅ ParseAllVisualBasicEmpty
✅ ReadAssemblyNameSimple
✅ ReadMvidSimple
✅ RewriteGlobalEditorConfigPaths

✅ Basic.CompilerLog.UnitTests.SdkUtilTests

✅ GetDotnetDirectoryBadPath

✅ Basic.CompilerLog.UnitTests.SolutionReaderTests

✅ CreateRespectLeaveOpen
✅ DocumentsGeneratedDefaultHost(basicAnalyzerKind: InMemory)
✅ DocumentsGeneratedDefaultHost(basicAnalyzerKind: None)
✅ DocumentsGeneratedDefaultHost(basicAnalyzerKind: OnDisk)
✅ ProjectReference_Simple

✅ Basic.CompilerLog.UnitTests.StringStreamTests

✅ Behaviors
✅ PositionReset
✅ PositionSetToMiddle
✅ ReadEmpty
✅ RoundTrip(input: "")
✅ RoundTrip(input: "Hello, world!")
✅ RoundTrip(input: "lets try this value")
✅ RoundTripGenerated

✅ Basic.CompilerLog.UnitTests.UsingAllCompilerLogTests

✅ ClassifyAll
✅ CommandLineArguments
✅ EmitToDisk
✅ EmitToMemory(basicAnalyzerKind: InMemory)
✅ EmitToMemory(basicAnalyzerKind: None)
✅ EmitToMemory(basicAnalyzerKind: OnDisk)
✅ EmitToMemoryCompilerLogWithSeparateState
✅ ExportAndBuild(includeAnalyzers: False)
✅ ExportAndBuild(includeAnalyzers: True)
✅ GeneratedFilePathsNoneHost
✅ LoadAllCore(none: False)
✅ LoadAllCore(none: True)
✅ VerifyConsistentOptions

✅ TestResults-Test-Windows-Core.trx

325 tests were completed in 304s with 324 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
Basic.CompilerLog.UnitTests.BasicAnalyzerHostTests 5✅ 233ms
Basic.CompilerLog.UnitTests.BinaryLogReaderTests 20✅ 61s
Basic.CompilerLog.UnitTests.BinaryLogUtilTests 19✅ 1⚪ 12ms
Basic.CompilerLog.UnitTests.CodeAnalysisExtensionsTests 1✅ 3s
Basic.CompilerLog.UnitTests.CommonUtilTests 2✅ 0ms
Basic.CompilerLog.UnitTests.CompilationDataTests 13✅ 14s
Basic.CompilerLog.UnitTests.CompilationTaskDataTests 2✅ 4ms
Basic.CompilerLog.UnitTests.CompilerCallReaderUtilTests 4✅ 8ms
Basic.CompilerLog.UnitTests.CompilerCallTests 1✅ 1ms
Basic.CompilerLog.UnitTests.CompilerLogBuilderTests 4✅ 3s
Basic.CompilerLog.UnitTests.CompilerLogReaderExTests 4✅ 1s
Basic.CompilerLog.UnitTests.CompilerLogReaderTests 44✅ 50s
Basic.CompilerLog.UnitTests.CompilerLogUtilTests 1✅ 1ms
Basic.CompilerLog.UnitTests.ExportUtilTests 15✅ 18s
Basic.CompilerLog.UnitTests.ExtensionsTests 3✅ 8ms
Basic.CompilerLog.UnitTests.FilterOptionSetTest 1✅ 4ms
Basic.CompilerLog.UnitTests.LogReaderStateTests 3✅ 70ms
Basic.CompilerLog.UnitTests.MetadataTests 5✅ 1ms
Basic.CompilerLog.UnitTests.MSBuildProjectDataTests 1✅ 0ms
Basic.CompilerLog.UnitTests.PathNormalizationUtilTests 30✅ 11ms
Basic.CompilerLog.UnitTests.PathUtilTests 1✅ 0ms
Basic.CompilerLog.UnitTests.PolyfillTests 6✅ 2ms
Basic.CompilerLog.UnitTests.ProgramTests 82✅ 72s
Basic.CompilerLog.UnitTests.ResilientDirectoryTests 4✅ 4ms
Basic.CompilerLog.UnitTests.RoslynUtilTests 26✅ 466ms
Basic.CompilerLog.UnitTests.SdkUtilTests 1✅ 0ms
Basic.CompilerLog.UnitTests.SolutionReaderTests 5✅ 3s
Basic.CompilerLog.UnitTests.StringStreamTests 8✅ 139ms
Basic.CompilerLog.UnitTests.UsingAllCompilerLogTests 13✅ 46s

✅ Basic.CompilerLog.UnitTests.BasicAnalyzerHostTests

✅ Error
✅ NoneConflictingFileNames
✅ NoneDispose
✅ NoneProps
✅ Supported

✅ Basic.CompilerLog.UnitTests.BinaryLogReaderTests

✅ CreateFilePath(basicAnalyzerKind: InMemory)
✅ CreateFilePath(basicAnalyzerKind: OnDisk)
✅ CreateFilePathLogReaderState
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream1(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ DisposeDouble
✅ GetCompilationSimple(basicAnalyzerKind: InMemory)
✅ GetCompilationSimple(basicAnalyzerKind: None)
✅ GetCompilationSimple(basicAnalyzerKind: OnDisk)
✅ ReadAllCompilerCallsTwice
✅ ReadCommandLineArgumentsOwnership
✅ ReadDeletedPdb
✅ ReadGeneratedFiles
✅ VerifyBasicAnalyzerKind(basicAnalyzerKind: InMemory)
✅ VerifyBasicAnalyzerKind(basicAnalyzerKind: None)
✅ VerifyBasicAnalyzerKind(basicAnalyzerKind: OnDisk)

✅ Basic.CompilerLog.UnitTests.BinaryLogUtilTests

✅ ParseCompilerAndArgumentsBad(inputArgs: "   ")
✅ ParseCompilerAndArgumentsBad(inputArgs: "dotnet csc2 what we expect a.cs")
✅ ParseCompilerAndArgumentsBad(inputArgs: "dotnet exec vbc.dll what we expect a.cs")
✅ ParseCompilerAndArgumentsBad(inputArgs: "dotnet not what we expect a.cs")
✅ ParseCompilerAndArgumentsBad(inputArgs: "empty")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "csc.exe a.cs b.cs", expectedCompilerFilePath: "csc.exe", expectedArgs: "a.cs b.cs")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "dotnet exec csc.dll a.cs", expectedCompilerFilePath: "csc.dll", expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "dotnet-can-be-any-host-name exec csc.dll a.cs", expectedCompilerFilePath: "csc.dll", expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "dotnet.exe exec csc.dll a.cs", expectedCompilerFilePath: "csc.dll", expectedArgs: "a.cs")
⚪ ParseCompilerAndArgumentsCscUnix
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "  C:\\Program Files\\dotnet\\dotnet.exe exec \"C:\"···, expectedCompilerFilePath: "C:\\Program Files\\dotnet\\sdk\\8.0.301\\Roslyn\\b"···, expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "'C:\\Program Files\\dotnet\\dotnet.exe' exec \"C:\"···, expectedCompilerFilePath: "C:\\Program Files\\dotnet\\sdk\\8.0.301\\Roslyn\\b"···, expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "\"C:\\Program Files\\dotnet\\dotnet.exe\" exec \"C"···, expectedCompilerFilePath: "C:\\Program Files\\dotnet\\sdk\\8.0.301\\Roslyn\\b"···, expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "\"C:\\Program Files\\Microsoft Visual Studio\\2022"···, expectedCompilerFilePath: "C:\\Program Files\\Microsoft Visual Studio\\2022\\"···, expectedArgs: "a.cs b.cs")
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "C:\\Program Files\\dotnet\\dotnet.exe exec \"C:\\P"···, expectedCompilerFilePath: "C:\\Program Files\\dotnet\\sdk\\8.0.301\\Roslyn\\b"···, expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "C:\\Program Files\\Microsoft Visual Studio\\2022\\"···, expectedCompilerFilePath: "C:\\Program Files\\Microsoft Visual Studio\\2022\\"···, expectedArgs: "a.cs b.cs")
✅ ParseCompilerAndArgumentsNull
✅ ParseCompilerAndArgumentsVbc(inputArgs: "dotnet-can-be-any-host-name exec vbc.dll a.vb", expectedCompilerFilePath: "vbc.dll", expectedArgs: "a.vb")
✅ ParseCompilerAndArgumentsVbc(inputArgs: "dotnet.exe exec vbc.dll a.cs", expectedCompilerFilePath: "vbc.dll", expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsVbc(inputArgs: "vbc.exe a.cs b.cs", expectedCompilerFilePath: "vbc.exe", expectedArgs: "a.cs b.cs")

✅ Basic.CompilerLog.UnitTests.CodeAnalysisExtensionsTests

✅ EmitToMemory

✅ Basic.CompilerLog.UnitTests.CommonUtilTests

✅ Defines
✅ GetAssemblyLoadContext

✅ Basic.CompilerLog.UnitTests.CompilationDataTests

✅ EmitToMemoryCombinations
✅ EmitToMemoryRefOnly
✅ GetAllDiagnostics(basicAnalyzerKind: InMemory)
✅ GetAllDiagnostics(basicAnalyzerKind: None)
✅ GetAllDiagnostics(basicAnalyzerKind: OnDisk)
✅ GetAllDiagnosticsNoAnalyzers
✅ GetAnalyzersNoHosting
✅ GetAnalyzersNormal
✅ GetCompilationAfterGeneratorsDiagnostics
✅ GetDiagnostics
✅ GetGeneratedSyntaxTrees(basicAnalyzerKind: InMemory)
✅ GetGeneratedSyntaxTrees(basicAnalyzerKind: None)
✅ GetGeneratedSyntaxTrees(basicAnalyzerKind: OnDisk)

✅ Basic.CompilerLog.UnitTests.CompilationTaskDataTests

✅ TryCreateCompilerCallBadArguments
✅ TryCreateCompilerNoArguments

✅ Basic.CompilerLog.UnitTests.CompilerCallReaderUtilTests

✅ CreateBadExtension
✅ GetAllAnalyzerKinds(basicAnalyzerKind: InMemory)
✅ GetAllAnalyzerKinds(basicAnalyzerKind: None)
✅ GetAllAnalyzerKinds(basicAnalyzerKind: OnDisk)

✅ Basic.CompilerLog.UnitTests.CompilerCallTests

✅ GetDiagnosticNameNoTargetFramework

✅ Basic.CompilerLog.UnitTests.CompilerLogBuilderTests

✅ AddMissingFile
✅ AddWithMissingCompilerFilePath
✅ CloseTwice
✅ PortablePdbMissing

✅ Basic.CompilerLog.UnitTests.CompilerLogReaderExTests

✅ AnalyzerConfigGeneratedCode(value: "0", expectedKind: Unknown)
✅ AnalyzerConfigGeneratedCode(value: "false", expectedKind: NotGenerated)
✅ AnalyzerConfigGeneratedCode(value: "true", expectedKind: MarkedGenerated)
✅ AnalyzerConfigNone

✅ Basic.CompilerLog.UnitTests.CompilerLogReaderTests

✅ AdditionalFiles
✅ AnalyzerDiagnostics
✅ AnalyzerLoadCaching(kind: InMemory)
✅ AnalyzerLoadCaching(kind: OnDisk)
✅ AnalyzerLoadDispose(kind: InMemory)
✅ AnalyzerLoadDispose(kind: OnDisk)
✅ AnalyzerLoadOptions(basicAnalyzerKind: InMemory)
✅ AnalyzerLoadOptions(basicAnalyzerKind: None)
✅ AnalyzerLoadOptions(basicAnalyzerKind: OnDisk)
✅ ContentExtraSourceFile(fileName: "file1.cs")
✅ ContentExtraSourceFile(fileName: "file2.cs")
✅ CreateInvalidZipFile
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream1(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ Disposed
✅ EmbedLineIssues
✅ GlobalConfigPathMap
✅ KeyFileCustomState
✅ KeyFileDefault
✅ KindWpf
✅ MetadataCompatV1(resourceName: "MetadataVersion1.console.complog")
✅ MetadataCompatV2(resourceName: "MetadataVersion2.console.complog")
✅ MetadataVersion
✅ NoneHostAddsNoGeneratorIfNoGeneratedSource
✅ NoneHostGeneratedFilesInRaw
✅ NoneHostGeneratedFilesShouldBeLast
✅ NoneHostHasSingelGenerator
✅ NoneHostNativePdb
✅ ProjectMultiTarget
✅ ProjectReferences_Corrupted
✅ ProjectReferences_ReadReference
✅ ProjectReferences_Simple
✅ ProjectSingleTarget
✅ ReadCompilationDataBadIndex(index: -1)
✅ ReadCompilationDataBadIndex(index: 100)
✅ ReadCompilerCallBadIndex(index: -1)
✅ ReadCompilerCallBadIndex(index: 100)
✅ ReadCompilerCallWrongOwner
✅ ResourceSimpleEmbedded
✅ VisualBasic

✅ Basic.CompilerLog.UnitTests.CompilerLogUtilTests

✅ CreateBadExtension

✅ Basic.CompilerLog.UnitTests.ExportUtilTests

✅ ConsoleMultiTarget
✅ ConsoleWithLink
✅ ConsoleWithRuleset
✅ EmbedLineInsideProject
✅ ExportAll
✅ ExportAllBadPath
✅ ExportNoconfig
✅ ExportRsp1
✅ ExportRsp2
✅ ExportUnixPaths
✅ ExportWithUnsafeOption
✅ GeneratedText
✅ GeneratedTextExcludeAnalyzers
✅ GlobalConfigMapsPaths
✅ StrongNameKey

✅ Basic.CompilerLog.UnitTests.ExtensionsTests

✅ AddRange
✅ CheckEmitFlags
✅ GetFailureString

✅ Basic.CompilerLog.UnitTests.FilterOptionSetTest

✅ CheckForAnalyzers

✅ Basic.CompilerLog.UnitTests.LogReaderStateTests

✅ CustomAssemblyLoadContext
✅ DisposeCleansUpDirectories
✅ DisposeDirectoryLocked

✅ Basic.CompilerLog.UnitTests.MetadataTests

✅ ParseBadCount
✅ ParseBadFormat
✅ ParseBadVersion
✅ ParseVersion0
✅ ParseVersion1

✅ Basic.CompilerLog.UnitTests.MSBuildProjectDataTests

✅ MSBuildProjectDataToString

✅ Basic.CompilerLog.UnitTests.PathNormalizationUtilTests

✅ EmptyIsRooted
✅ UnixIsRooted(path: "../", expected: False)
✅ UnixIsRooted(path: "/", expected: True)
✅ UnixIsRooted(path: "/blah", expected: True)
✅ UnixIsRooted(path: "/code/blah.cs", expected: True)
✅ UnixIsRooted(path: "example/blah.cs", expected: False)
✅ UnixIsRooted(path: null, expected: False)
✅ UnixToWindowsNormalize(path: "/", expected: "c:\\code\\")
✅ UnixToWindowsNormalize(path: "/example", expected: "c:\\code\\example")
✅ UnixToWindowsNormalize(path: "/example/../blah.cs", expected: "c:\\code\\example\\..\\blah.cs")
✅ UnixToWindowsNormalize(path: "/example/", expected: "c:\\code\\example\\")
✅ UnixToWindowsNormalize(path: "/example/blah.cs", expected: "c:\\code\\example\\blah.cs")
✅ UnixToWindowsNormalize(path: null, expected: null)
✅ UnixToWindowsRootFileName(fileName: "a.cs", expected: "c:\\code\\a.cs")
✅ UnixToWindowsRootFileName(fileName: "example.cs", expected: "c:\\code\\example.cs")
✅ WindowsIsRooted(path: "\\..\\", expected: False)
✅ WindowsIsRooted(path: "c:", expected: True)
✅ WindowsIsRooted(path: "c:\\..\\", expected: True)
✅ WindowsIsRooted(path: "c:\\", expected: True)
✅ WindowsIsRooted(path: "c:\\\\\\", expected: True)
✅ WindowsIsRooted(path: "example\\blah.cs", expected: False)
✅ WindowsIsRooted(path: null, expected: False)
✅ WindowsToUnixNormalize(path: "c:\\", expected: "/code/")
✅ WindowsToUnixNormalize(path: "c:\\\\", expected: "/code/")
✅ WindowsToUnixNormalize(path: "c:\\\\\\", expected: "/code/")
✅ WindowsToUnixNormalize(path: "c:\\src\\..\\blah.cs", expected: "/code/src/../blah.cs")
✅ WindowsToUnixNormalize(path: "c:\\src\\blah.cs", expected: "/code/src/blah.cs")
✅ WindowsToUnixNormalize(path: null, expected: null)
✅ WindowsToUnixRootFileName(fileName: "a.cs", expected: "/code/a.cs")
✅ WindowsToUnixRootFileName(fileName: "example.cs", expected: "/code/example.cs")

✅ Basic.CompilerLog.UnitTests.PathUtilTests

✅ RemovePathStart

✅ Basic.CompilerLog.UnitTests.PolyfillTests

✅ ContainsCharSimple
✅ GetByteCountEmpty
✅ GetBytesCountEmpty
✅ ReadExactlyTooMany
✅ WriteLineSimple
✅ WriteSimple

✅ Basic.CompilerLog.UnitTests.ProgramTests

✅ AnalyzerBadOption
✅ AnalyzersBoth
✅ AnalyzersHelp
✅ AnalyzersProjectFilesDeleted
✅ BadCommand
✅ Create(extra: "--out custom.complog", fileName: "custom.complog")
✅ Create(extra: "-o custom.complog", fileName: "custom.complog")
✅ Create(extra: "", fileName: "msbuild.complog")
✅ CreateEmpty
✅ CreateExistingComplog
✅ CreateExtraArguments
✅ CreateFullPath
✅ CreateHelp(arg: "-h")
✅ CreateHelp(arg: "-help")
✅ CreateNoopBuild
✅ CreateOverRemovedProject
✅ CreateProjectFile
✅ CreateWithBuild
✅ ExportBadOption
✅ ExportCompilerLog(arg: "-a none", expectedKind: None)
✅ ExportCompilerLog(arg: "-a ondisk", expectedKind: OnDisk)
✅ ExportCompilerLog(arg: "", expectedKind: null)
✅ ExportHelp
✅ GeneratedBadArg
✅ GeneratedBadFilter
✅ GeneratedBoth(basicAnalyzerKind: InMemory)
✅ GeneratedBoth(basicAnalyzerKind: None)
✅ GeneratedBoth(basicAnalyzerKind: OnDisk)
✅ GeneratedHelp
✅ GeneratePdbMissing
✅ Help(arg: "")
✅ Help(arg: "help")
✅ HelpVerbose
✅ PrintAll
✅ PrintBadFile
✅ PrintCompilers
✅ PrintDiffMetadata(metadataVersion: 1)
✅ PrintDiffMetadata(metadataVersion: 100)
✅ PrintDirectory
✅ PrintEmptyDirectory
✅ PrintError
✅ PrintFrameworks
✅ PrintHelp
✅ PrintKinds
✅ PrintOne
✅ PrintWithoutProject
✅ References
✅ ReferencesBadOption
✅ ReferencesHelp
✅ ReplayBadOption
✅ ReplayConsoleWithEmit(arg: "--none")
✅ ReplayConsoleWithEmit(arg: "")
✅ ReplayHelp
✅ ReplayMissingOutput
✅ ReplayNewCompiler
✅ ReplayWithArgs(command: "diagnostics", arg: "--none", kind: None)
✅ ReplayWithArgs(command: "emit", arg: "--none", kind: None)
✅ ReplayWithArgs(command: "replay", arg: "--analyzers inmemory", kind: InMemory)
✅ ReplayWithArgs(command: "replay", arg: "--analyzers none", kind: None)
✅ ReplayWithArgs(command: "replay", arg: "--analyzers ondisk", kind: OnDisk)
✅ ReplayWithArgs(command: "replay", arg: "--none", kind: None)
✅ ReplayWithArgs(command: "replay", arg: "--severity Error", kind: null)
✅ ReplayWithArgs(command: "replay", arg: "", kind: null)
✅ ReplayWithBadProject
✅ ReplayWithBothLogs
✅ ReplayWithDiagnostics
✅ ReplayWithProject
✅ ResponseAll
✅ ResponseBadOption
✅ ResponseHelp
✅ ResponseInline
✅ ResponseInlineMultiTarget
✅ ResponseInlineWithOutput
✅ ResponseLinuxComplog
✅ ResponseMultiTarget
✅ ResponseNoLogArgument
✅ ResponseNoLogAvailable
✅ ResponseOnCompilerLog
✅ ResponseOnInvalidFileType
✅ ResponseOutputPath
✅ ResponseProjectFilter
✅ ResponseSingleLine

✅ Basic.CompilerLog.UnitTests.ResilientDirectoryTests

✅ GetNewFilePath1
✅ GetNewFilePath2
✅ GetNewFilePathFlatten1
✅ GetNewFilePathFlatten2

✅ Basic.CompilerLog.UnitTests.RoslynUtilTests

✅ GetAssemblyFileName(commandLine: "/target:exe", expectedFileName: "app.exe")
✅ GetAssemblyFileName(commandLine: "/target:library other.cs", expectedFileName: "other.dll")
✅ GetAssemblyFileName(commandLine: "/target:library", expectedFileName: "app.dll")
✅ GetAssemblyFileName(commandLine: "/target:module other.cs", expectedFileName: "other.netmodule")
✅ GetAssemblyFileName(commandLine: "/target:module", expectedFileName: "app.netmodule")
✅ GetAssemblyFileName(commandLine: "/target:winexe", expectedFileName: "app.exe")
✅ IsGlobalConfig(data: IsGlobalConfigData-0)
✅ IsGlobalConfig(data: IsGlobalConfigData-1)
✅ IsGlobalConfig(data: IsGlobalConfigData-10)
✅ IsGlobalConfig(data: IsGlobalConfigData-11)
✅ IsGlobalConfig(data: IsGlobalConfigData-12)
✅ IsGlobalConfig(data: IsGlobalConfigData-13)
✅ IsGlobalConfig(data: IsGlobalConfigData-14)
✅ IsGlobalConfig(data: IsGlobalConfigData-2)
✅ IsGlobalConfig(data: IsGlobalConfigData-3)
✅ IsGlobalConfig(data: IsGlobalConfigData-4)
✅ IsGlobalConfig(data: IsGlobalConfigData-5)
✅ IsGlobalConfig(data: IsGlobalConfigData-6)
✅ IsGlobalConfig(data: IsGlobalConfigData-7)
✅ IsGlobalConfig(data: IsGlobalConfigData-8)
✅ IsGlobalConfig(data: IsGlobalConfigData-9)
✅ ParseAllCSharpEmpty
✅ ParseAllVisualBasicEmpty
✅ ReadAssemblyNameSimple
✅ ReadMvidSimple
✅ RewriteGlobalEditorConfigPaths

✅ Basic.CompilerLog.UnitTests.SdkUtilTests

✅ GetDotnetDirectoryBadPath

✅ Basic.CompilerLog.UnitTests.SolutionReaderTests

✅ CreateRespectLeaveOpen
✅ DocumentsGeneratedDefaultHost(basicAnalyzerKind: InMemory)
✅ DocumentsGeneratedDefaultHost(basicAnalyzerKind: None)
✅ DocumentsGeneratedDefaultHost(basicAnalyzerKind: OnDisk)
✅ ProjectReference_Simple

✅ Basic.CompilerLog.UnitTests.StringStreamTests

✅ Behaviors
✅ PositionReset
✅ PositionSetToMiddle
✅ ReadEmpty
✅ RoundTrip(input: "")
✅ RoundTrip(input: "Hello, world!")
✅ RoundTrip(input: "lets try this value")
✅ RoundTripGenerated

✅ Basic.CompilerLog.UnitTests.UsingAllCompilerLogTests

✅ ClassifyAll
✅ CommandLineArguments
✅ EmitToDisk
✅ EmitToMemory(basicAnalyzerKind: InMemory)
✅ EmitToMemory(basicAnalyzerKind: None)
✅ EmitToMemory(basicAnalyzerKind: OnDisk)
✅ EmitToMemoryCompilerLogWithSeparateState
✅ ExportAndBuild(includeAnalyzers: False)
✅ ExportAndBuild(includeAnalyzers: True)
✅ GeneratedFilePathsNoneHost
✅ LoadAllCore(none: False)
✅ LoadAllCore(none: True)
✅ VerifyConsistentOptions

✅ TestResults-Test-Windows-Framework.trx

227 tests were completed in 178s with 226 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
Basic.CompilerLog.UnitTests.BasicAnalyzerHostTests 6✅ 6s
Basic.CompilerLog.UnitTests.BinaryLogReaderTests 18✅ 16s
Basic.CompilerLog.UnitTests.BinaryLogUtilTests 19✅ 1⚪ 20ms
Basic.CompilerLog.UnitTests.CodeAnalysisExtensionsTests 1✅ 5s
Basic.CompilerLog.UnitTests.CommonUtilTests 1✅ 1ms
Basic.CompilerLog.UnitTests.CompilationDataTests 10✅ 30s
Basic.CompilerLog.UnitTests.CompilationTaskDataTests 2✅ 8ms
Basic.CompilerLog.UnitTests.CompilerCallReaderUtilTests 4✅ 19ms
Basic.CompilerLog.UnitTests.CompilerCallTests 1✅ 1ms
Basic.CompilerLog.UnitTests.CompilerLogBuilderTests 4✅ 3s
Basic.CompilerLog.UnitTests.CompilerLogReaderExTests 4✅ 1s
Basic.CompilerLog.UnitTests.CompilerLogReaderTests 42✅ 47s
Basic.CompilerLog.UnitTests.CompilerLogUtilTests 1✅ 2ms
Basic.CompilerLog.UnitTests.ExportUtilTests 13✅ 18s
Basic.CompilerLog.UnitTests.ExtensionsTests 2✅ 16ms
Basic.CompilerLog.UnitTests.LogReaderStateTests 2✅ 5ms
Basic.CompilerLog.UnitTests.MetadataTests 5✅ 5ms
Basic.CompilerLog.UnitTests.MSBuildProjectDataTests 1✅ 1ms
Basic.CompilerLog.UnitTests.PathNormalizationUtilTests 30✅ 30ms
Basic.CompilerLog.UnitTests.PathUtilTests 1✅ 1ms
Basic.CompilerLog.UnitTests.PolyfillTests 6✅ 6ms
Basic.CompilerLog.UnitTests.ResilientDirectoryTests 4✅ 5ms
Basic.CompilerLog.UnitTests.RoslynUtilTests 26✅ 833ms
Basic.CompilerLog.UnitTests.SdkUtilTests 1✅ 1ms
Basic.CompilerLog.UnitTests.SolutionReaderTests 3✅ 3s
Basic.CompilerLog.UnitTests.StringStreamTests 8✅ 106ms
Basic.CompilerLog.UnitTests.UsingAllCompilerLogTests 11✅ 28s

✅ Basic.CompilerLog.UnitTests.BasicAnalyzerHostTests

✅ Error
✅ InMemory
✅ NoneConflictingFileNames
✅ NoneDispose
✅ NoneProps
✅ Supported

✅ Basic.CompilerLog.UnitTests.BinaryLogReaderTests

✅ CreateFilePath(basicAnalyzerKind: InMemory)
✅ CreateFilePath(basicAnalyzerKind: OnDisk)
✅ CreateFilePathLogReaderState
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream1(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ DisposeDouble
✅ GetCompilationSimple(basicAnalyzerKind: None)
✅ GetCompilationSimple(basicAnalyzerKind: OnDisk)
✅ ReadAllCompilerCallsTwice
✅ ReadCommandLineArgumentsOwnership
✅ ReadDeletedPdb
✅ ReadGeneratedFiles
✅ VerifyBasicAnalyzerKind(basicAnalyzerKind: None)
✅ VerifyBasicAnalyzerKind(basicAnalyzerKind: OnDisk)

✅ Basic.CompilerLog.UnitTests.BinaryLogUtilTests

✅ ParseCompilerAndArgumentsBad(inputArgs: "   ")
✅ ParseCompilerAndArgumentsBad(inputArgs: "dotnet csc2 what we expect a.cs")
✅ ParseCompilerAndArgumentsBad(inputArgs: "dotnet exec vbc.dll what we expect a.cs")
✅ ParseCompilerAndArgumentsBad(inputArgs: "dotnet not what we expect a.cs")
✅ ParseCompilerAndArgumentsBad(inputArgs: "empty")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "csc.exe a.cs b.cs", expectedCompilerFilePath: "csc.exe", expectedArgs: "a.cs b.cs")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "dotnet exec csc.dll a.cs", expectedCompilerFilePath: "csc.dll", expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "dotnet-can-be-any-host-name exec csc.dll a.cs", expectedCompilerFilePath: "csc.dll", expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCsc(inputArgs: "dotnet.exe exec csc.dll a.cs", expectedCompilerFilePath: "csc.dll", expectedArgs: "a.cs")
⚪ ParseCompilerAndArgumentsCscUnix
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "  C:\\Program Files\\dotnet\\dotnet.exe exec \"C:\"···, expectedCompilerFilePath: "C:\\Program Files\\dotnet\\sdk\\8.0.301\\Roslyn\\b"···, expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "'C:\\Program Files\\dotnet\\dotnet.exe' exec \"C:\"···, expectedCompilerFilePath: "C:\\Program Files\\dotnet\\sdk\\8.0.301\\Roslyn\\b"···, expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "\"C:\\Program Files\\dotnet\\dotnet.exe\" exec \"C"···, expectedCompilerFilePath: "C:\\Program Files\\dotnet\\sdk\\8.0.301\\Roslyn\\b"···, expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "\"C:\\Program Files\\Microsoft Visual Studio\\2022"···, expectedCompilerFilePath: "C:\\Program Files\\Microsoft Visual Studio\\2022\\"···, expectedArgs: "a.cs b.cs")
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "C:\\Program Files\\dotnet\\dotnet.exe exec \"C:\\P"···, expectedCompilerFilePath: "C:\\Program Files\\dotnet\\sdk\\8.0.301\\Roslyn\\b"···, expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsCscWindows(inputArgs: "C:\\Program Files\\Microsoft Visual Studio\\2022\\"···, expectedCompilerFilePath: "C:\\Program Files\\Microsoft Visual Studio\\2022\\"···, expectedArgs: "a.cs b.cs")
✅ ParseCompilerAndArgumentsNull
✅ ParseCompilerAndArgumentsVbc(inputArgs: "dotnet-can-be-any-host-name exec vbc.dll a.vb", expectedCompilerFilePath: "vbc.dll", expectedArgs: "a.vb")
✅ ParseCompilerAndArgumentsVbc(inputArgs: "dotnet.exe exec vbc.dll a.cs", expectedCompilerFilePath: "vbc.dll", expectedArgs: "a.cs")
✅ ParseCompilerAndArgumentsVbc(inputArgs: "vbc.exe a.cs b.cs", expectedCompilerFilePath: "vbc.exe", expectedArgs: "a.cs b.cs")

✅ Basic.CompilerLog.UnitTests.CodeAnalysisExtensionsTests

✅ EmitToMemory

✅ Basic.CompilerLog.UnitTests.CommonUtilTests

✅ Defines

✅ Basic.CompilerLog.UnitTests.CompilationDataTests

✅ EmitToMemoryCombinations
✅ EmitToMemoryRefOnly
✅ GetAllDiagnostics(basicAnalyzerKind: None)
✅ GetAllDiagnostics(basicAnalyzerKind: OnDisk)
✅ GetAllDiagnosticsNoAnalyzers
✅ GetAnalyzersNoHosting
✅ GetAnalyzersNormal
✅ GetCompilationAfterGeneratorsDiagnostics
✅ GetDiagnostics
✅ GetGeneratedSyntaxTrees(basicAnalyzerKind: None)

✅ Basic.CompilerLog.UnitTests.CompilationTaskDataTests

✅ TryCreateCompilerCallBadArguments
✅ TryCreateCompilerNoArguments

✅ Basic.CompilerLog.UnitTests.CompilerCallReaderUtilTests

✅ CreateBadExtension
✅ GetAllAnalyzerKinds(basicAnalyzerKind: InMemory)
✅ GetAllAnalyzerKinds(basicAnalyzerKind: None)
✅ GetAllAnalyzerKinds(basicAnalyzerKind: OnDisk)

✅ Basic.CompilerLog.UnitTests.CompilerCallTests

✅ GetDiagnosticNameNoTargetFramework

✅ Basic.CompilerLog.UnitTests.CompilerLogBuilderTests

✅ AddMissingFile
✅ AddWithMissingCompilerFilePath
✅ CloseTwice
✅ PortablePdbMissing

✅ Basic.CompilerLog.UnitTests.CompilerLogReaderExTests

✅ AnalyzerConfigGeneratedCode(value: "0", expectedKind: Unknown)
✅ AnalyzerConfigGeneratedCode(value: "false", expectedKind: NotGenerated)
✅ AnalyzerConfigGeneratedCode(value: "true", expectedKind: MarkedGenerated)
✅ AnalyzerConfigNone

✅ Basic.CompilerLog.UnitTests.CompilerLogReaderTests

✅ AdditionalFiles
✅ AnalyzerLoadCaching(kind: InMemory)
✅ AnalyzerLoadCaching(kind: OnDisk)
✅ AnalyzerLoadDispose(kind: InMemory)
✅ AnalyzerLoadDispose(kind: OnDisk)
✅ AnalyzerLoadOptions(basicAnalyzerKind: None)
✅ AnalyzerLoadOptions(basicAnalyzerKind: OnDisk)
✅ ContentExtraSourceFile(fileName: "file1.cs")
✅ ContentExtraSourceFile(fileName: "file2.cs")
✅ CreateInvalidZipFile
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream1(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream1(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: False)
✅ CreateStream2(basicAnalyzerKind: InMemory, leaveOpen: True)
✅ CreateStream2(basicAnalyzerKind: OnDisk, leaveOpen: True)
✅ Disposed
✅ EmbedLineIssues
✅ GlobalConfigPathMap
✅ KeyFileCustomState
✅ KeyFileDefault
✅ KindWpf
✅ MetadataCompatV1(resourceName: "MetadataVersion1.console.complog")
✅ MetadataCompatV2(resourceName: "MetadataVersion2.console.complog")
✅ MetadataVersion
✅ NoneHostAddsNoGeneratorIfNoGeneratedSource
✅ NoneHostGeneratedFilesInRaw
✅ NoneHostGeneratedFilesShouldBeLast
✅ NoneHostHasSingelGenerator
✅ NoneHostNativePdb
✅ ProjectMultiTarget
✅ ProjectReferences_Corrupted
✅ ProjectReferences_ReadReference
✅ ProjectReferences_Simple
✅ ProjectSingleTarget
✅ ReadCompilationDataBadIndex(index: -1)
✅ ReadCompilationDataBadIndex(index: 100)
✅ ReadCompilerCallBadIndex(index: -1)
✅ ReadCompilerCallBadIndex(index: 100)
✅ ReadCompilerCallWrongOwner
✅ ResourceSimpleEmbedded
✅ VisualBasic

✅ Basic.CompilerLog.UnitTests.CompilerLogUtilTests

✅ CreateBadExtension

✅ Basic.CompilerLog.UnitTests.ExportUtilTests

✅ ConsoleMultiTarget
✅ ConsoleWithLink
✅ ConsoleWithRuleset
✅ EmbedLineInsideProject
✅ ExportNoconfig
✅ ExportRsp1
✅ ExportRsp2
✅ ExportUnixPaths
✅ ExportWithUnsafeOption
✅ GeneratedText
✅ GeneratedTextExcludeAnalyzers
✅ GlobalConfigMapsPaths
✅ StrongNameKey

✅ Basic.CompilerLog.UnitTests.ExtensionsTests

✅ AddRange
✅ CheckEmitFlags

✅ Basic.CompilerLog.UnitTests.LogReaderStateTests

✅ DisposeCleansUpDirectories
✅ DisposeDirectoryLocked

✅ Basic.CompilerLog.UnitTests.MetadataTests

✅ ParseBadCount
✅ ParseBadFormat
✅ ParseBadVersion
✅ ParseVersion0
✅ ParseVersion1

✅ Basic.CompilerLog.UnitTests.MSBuildProjectDataTests

✅ MSBuildProjectDataToString

✅ Basic.CompilerLog.UnitTests.PathNormalizationUtilTests

✅ EmptyIsRooted
✅ UnixIsRooted(path: "../", expected: False)
✅ UnixIsRooted(path: "/", expected: True)
✅ UnixIsRooted(path: "/blah", expected: True)
✅ UnixIsRooted(path: "/code/blah.cs", expected: True)
✅ UnixIsRooted(path: "example/blah.cs", expected: False)
✅ UnixIsRooted(path: null, expected: False)
✅ UnixToWindowsNormalize(path: "/", expected: "c:\\code\\")
✅ UnixToWindowsNormalize(path: "/example", expected: "c:\\code\\example")
✅ UnixToWindowsNormalize(path: "/example/../blah.cs", expected: "c:\\code\\example\\..\\blah.cs")
✅ UnixToWindowsNormalize(path: "/example/", expected: "c:\\code\\example\\")
✅ UnixToWindowsNormalize(path: "/example/blah.cs", expected: "c:\\code\\example\\blah.cs")
✅ UnixToWindowsNormalize(path: null, expected: null)
✅ UnixToWindowsRootFileName(fileName: "a.cs", expected: "c:\\code\\a.cs")
✅ UnixToWindowsRootFileName(fileName: "example.cs", expected: "c:\\code\\example.cs")
✅ WindowsIsRooted(path: "\\..\\", expected: False)
✅ WindowsIsRooted(path: "c:", expected: True)
✅ WindowsIsRooted(path: "c:\\..\\", expected: True)
✅ WindowsIsRooted(path: "c:\\", expected: True)
✅ WindowsIsRooted(path: "c:\\\\\\", expected: True)
✅ WindowsIsRooted(path: "example\\blah.cs", expected: False)
✅ WindowsIsRooted(path: null, expected: False)
✅ WindowsToUnixNormalize(path: "c:\\", expected: "/code/")
✅ WindowsToUnixNormalize(path: "c:\\\\", expected: "/code/")
✅ WindowsToUnixNormalize(path: "c:\\\\\\", expected: "/code/")
✅ WindowsToUnixNormalize(path: "c:\\src\\..\\blah.cs", expected: "/code/src/../blah.cs")
✅ WindowsToUnixNormalize(path: "c:\\src\\blah.cs", expected: "/code/src/blah.cs")
✅ WindowsToUnixNormalize(path: null, expected: null)
✅ WindowsToUnixRootFileName(fileName: "a.cs", expected: "/code/a.cs")
✅ WindowsToUnixRootFileName(fileName: "example.cs", expected: "/code/example.cs")

✅ Basic.CompilerLog.UnitTests.PathUtilTests

✅ RemovePathStart

✅ Basic.CompilerLog.UnitTests.PolyfillTests

✅ ContainsCharSimple
✅ GetByteCountEmpty
✅ GetBytesCountEmpty
✅ ReadExactlyTooMany
✅ WriteLineSimple
✅ WriteSimple

✅ Basic.CompilerLog.UnitTests.ResilientDirectoryTests

✅ GetNewFilePath1
✅ GetNewFilePath2
✅ GetNewFilePathFlatten1
✅ GetNewFilePathFlatten2

✅ Basic.CompilerLog.UnitTests.RoslynUtilTests

✅ GetAssemblyFileName(commandLine: "/target:exe", expectedFileName: "app.exe")
✅ GetAssemblyFileName(commandLine: "/target:library other.cs", expectedFileName: "other.dll")
✅ GetAssemblyFileName(commandLine: "/target:library", expectedFileName: "app.dll")
✅ GetAssemblyFileName(commandLine: "/target:module other.cs", expectedFileName: "other.netmodule")
✅ GetAssemblyFileName(commandLine: "/target:module", expectedFileName: "app.netmodule")
✅ GetAssemblyFileName(commandLine: "/target:winexe", expectedFileName: "app.exe")
✅ IsGlobalConfig(data: IsGlobalConfigData-0)
✅ IsGlobalConfig(data: IsGlobalConfigData-1)
✅ IsGlobalConfig(data: IsGlobalConfigData-10)
✅ IsGlobalConfig(data: IsGlobalConfigData-11)
✅ IsGlobalConfig(data: IsGlobalConfigData-12)
✅ IsGlobalConfig(data: IsGlobalConfigData-13)
✅ IsGlobalConfig(data: IsGlobalConfigData-14)
✅ IsGlobalConfig(data: IsGlobalConfigData-2)
✅ IsGlobalConfig(data: IsGlobalConfigData-3)
✅ IsGlobalConfig(data: IsGlobalConfigData-4)
✅ IsGlobalConfig(data: IsGlobalConfigData-5)
✅ IsGlobalConfig(data: IsGlobalConfigData-6)
✅ IsGlobalConfig(data: IsGlobalConfigData-7)
✅ IsGlobalConfig(data: IsGlobalConfigData-8)
✅ IsGlobalConfig(data: IsGlobalConfigData-9)
✅ ParseAllCSharpEmpty
✅ ParseAllVisualBasicEmpty
✅ ReadAssemblyNameSimple
✅ ReadMvidSimple
✅ RewriteGlobalEditorConfigPaths

✅ Basic.CompilerLog.UnitTests.SdkUtilTests

✅ GetDotnetDirectoryBadPath

✅ Basic.CompilerLog.UnitTests.SolutionReaderTests

✅ CreateRespectLeaveOpen
✅ DocumentsGeneratedDefaultHost(basicAnalyzerKind: None)
✅ ProjectReference_Simple

✅ Basic.CompilerLog.UnitTests.StringStreamTests

✅ Behaviors
✅ PositionReset
✅ PositionSetToMiddle
✅ ReadEmpty
✅ RoundTrip(input: "")
✅ RoundTrip(input: "Hello, world!")
✅ RoundTrip(input: "lets try this value")
✅ RoundTripGenerated

✅ Basic.CompilerLog.UnitTests.UsingAllCompilerLogTests

✅ ClassifyAll
✅ CommandLineArguments
✅ EmitToDisk
✅ EmitToMemory(basicAnalyzerKind: None)
✅ EmitToMemoryCompilerLogWithSeparateState
✅ ExportAndBuild(includeAnalyzers: False)
✅ ExportAndBuild(includeAnalyzers: True)
✅ GeneratedFilePathsNoneHost
✅ LoadAllCore(none: False)
✅ LoadAllCore(none: True)
✅ VerifyConsistentOptions