-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve yamux; add test-plans interop app (#73)
- Loading branch information
Showing
58 changed files
with
2,695 additions
and
670 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.git | ||
launchSettings.json | ||
|
||
*DS_Store | ||
_ReSharper.* | ||
*.csproj.user | ||
*[Rr]e[Ss]harper.user | ||
_ReSharper.*/ | ||
.vs/ | ||
|
||
**/Obj/ | ||
**/obj/ | ||
**/bin/ | ||
**/Bin/ | ||
|
||
*.xap | ||
*.user | ||
/TestResults | ||
*.vspscc | ||
*.vssscc | ||
*.suo | ||
*.cache | ||
packages/* | ||
artifacts/* | ||
msbuild.log | ||
PublishProfiles/ | ||
*.psess | ||
*.vsp | ||
*.pidb | ||
*.userprefs | ||
*.ncrunchsolution | ||
*.log | ||
*.vspx | ||
/.symbols | ||
*.sln.ide |
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
Submodule cs-multiaddress
updated
14 files
Submodule cs-multihash
updated
2 files
+0 −5 | src/Multiformats.Hash/Algorithms/Extensions.cs | |
+0 −1 | src/Multiformats.Hash/Algorithms/MURMUR3.cs |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited | ||
// SPDX-License-Identifier: MIT | ||
|
||
using Microsoft.Extensions.Logging; | ||
using NUnit.Framework; | ||
|
||
namespace Nethermind.Libp2p.Core.TestsBase; | ||
|
||
public class DebugLoggerFactory : ILoggerFactory | ||
{ | ||
class DebugLogger(string categoryName) : ILogger, IDisposable | ||
{ | ||
private readonly string _categoryName = categoryName; | ||
|
||
public IDisposable? BeginScope<TState>(TState state) where TState : notnull | ||
{ | ||
return this; | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
} | ||
|
||
public bool IsEnabled(LogLevel logLevel) | ||
{ | ||
return true; | ||
} | ||
|
||
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) | ||
{ | ||
TestContext.Out.WriteLine($"{logLevel} {_categoryName}:{eventId}: {(exception is null ? state?.ToString() : formatter(state, exception))}"); | ||
} | ||
} | ||
|
||
public void AddProvider(ILoggerProvider provider) | ||
{ | ||
|
||
} | ||
|
||
public ILogger CreateLogger(string categoryName) | ||
{ | ||
return new DebugLogger(categoryName); | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.