chore: repo cleanup and code quality improvements

- Remove global.json (SDK pinning unnecessary)

- Remove nuget.config, move MyGet source to .csproj RestoreAdditionalProjectSources

- Gitignore ndepend/ entirely, move badges to docs/img/

- Update README.md and docs/ndepend.md badge paths

- Add NDepend project property to QuanTAlib.slnx

- Expand .editorconfig ReSharper/diagnostic suppressions

- Use ArgumentOutOfRangeException instead of ArgumentException

- Use discard _ for unused event sender parameters

- Remove quantalib.code-workspace and sonar-suppressions.json

- Add filter signature SVGs
This commit is contained in:
Miha Kralj
2026-03-03 09:22:55 -08:00
parent e1a6743bda
commit 1910fdca93
131 changed files with 216046 additions and 2027 deletions
+5 -4
View File
@@ -1,9 +1,10 @@
using System.Reflection;
using System.Runtime.Intrinsics.X86;
using Xunit.Abstractions;
namespace QuanTAlib.Tests;
public class WmaCoverageTests
public class WmaCoverageTests(ITestOutputHelper output)
{
[Fact]
public void Cover_Scalar_Fallback_SmallData()
@@ -41,7 +42,7 @@ public class WmaCoverageTests
source[i] = i;
}
double[] output = new double[len];
double[] result = new double[len];
// Use reflection to invoke private static CalculateSimdCore
var method = typeof(Wma).GetMethod("CalculateSimdCore", BindingFlags.NonPublic | BindingFlags.Static);
@@ -73,12 +74,12 @@ public class WmaCoverageTests
// Maybe I can use `MethodInfo.CreateDelegate`?
// Delegates can take Spans if defined correctly.
InvokePrivateStaticMethod_WithSpans("CalculateSimdCore", source, output, period);
InvokePrivateStaticMethod_WithSpans("CalculateSimdCore", source, result, period);
}
catch (Exception ex)
{
// If reflection fails, we can't cover it.
Console.WriteLine($"Could not invoke AVX2 core: {ex.Message}");
output.WriteLine($"Could not invoke AVX2 core: {ex.Message}");
}
}