-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Cleaned up hosting code a bit * Removed dead code * more
- Loading branch information
Showing
13 changed files
with
140 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
using Basic.CompilerLog.Util; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace Basic.CompilerLog.UnitTests; | ||
|
||
public class CompilerLogStateTests : TestBase | ||
{ | ||
public CompilerLogStateTests(ITestOutputHelper testOutputHelper) | ||
: base(testOutputHelper, nameof(CompilerLogStateTests)) | ||
{ | ||
} | ||
|
||
[Fact] | ||
public void DisposeCleansUpDirectories() | ||
{ | ||
var state = new CompilerLogState(baseDir: Root.NewDirectory()); | ||
Directory.CreateDirectory(state.AnalyzerDirectory); | ||
state.Dispose(); | ||
Assert.False(Directory.Exists(state.BaseDirectory)); | ||
} | ||
|
||
/// <summary> | ||
/// Don't throw if state can't clean up the directories because they are locked. | ||
/// </summary> | ||
[Fact] | ||
public void DisposeDirectoryLocked() | ||
{ | ||
var state = new CompilerLogState(baseDir: Root.NewDirectory()); | ||
Directory.CreateDirectory(state.AnalyzerDirectory); | ||
var fileStream = new FileStream(Path.Combine(state.AnalyzerDirectory, "example.txt"), FileMode.Create, FileAccess.ReadWrite, FileShare.None); | ||
state.Dispose(); | ||
fileStream.Dispose(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
src/Basic.CompilerLog.Util/Impl/BasicAnalyzerConfigOptions.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.