Commit Graph

1141 Commits

Author SHA1 Message Date
Oliver Booth 22d5f07215
test: add tests for ReadOnlySpan.Pack (#73)
1 failing test: PackInt32Internal_Sse2_ShouldReturnCorrectInt32_GivenReadOnlySpan

This will fail the dotnet workflow.
2023-04-02 23:14:38 +01:00
Oliver Booth 78cebbce8b
test: add unit tests for Span.Contains(Enum) (#73) 2023-04-02 22:11:45 +01:00
Oliver Booth 4fc0d01670
test: cover null input for IsIPv4 and IsIPv6 2023-04-02 21:59:35 +01:00
Oliver Booth 3523ca5468
ci: add CI version info in dotnet build 2023-04-02 21:03:40 +01:00
Oliver Booth 312ce725c2
ci: suppress uncoverable lines in StreamExtensions 2023-04-02 21:03:15 +01:00
Oliver Booth d68d893abd
test: 100% coverage on Reflection extensions 2023-04-02 20:48:15 +01:00
Oliver Booth 303617a888
[ci skip] ci: cd upm for each successive step 2023-04-02 19:59:17 +01:00
Oliver Booth cb48dd2551
build: conditionally reference dotCover (fixes #75)
For CI runs, this package must not be referenced, or symbol validation will fail.
2023-04-02 19:54:09 +01:00
Oliver Booth da220c2242
build: partial revert 58c333a173 (#75)
Removes the reference to JetBrains.dotCover.MSBuild.
2023-04-02 19:40:25 +01:00
Oliver Booth 2439b3a3cd
[ci skip] style(ci): remove redundant empty line 2023-04-02 17:44:16 +01:00
Oliver Booth fb20e4d1e9
[ci skip] ci: copy artifacts before git diff
Also removes redundant shell specifier on git diff step. GitHub uses bash by default.
2023-04-02 17:42:59 +01:00
Oliver Booth ebc8734410
build: partial revert 58c333a173 (#75)) 2023-04-02 17:34:24 +01:00
Oliver Booth a093e91502
[ci skip] ci: cd upm before git diff 2023-04-02 17:28:58 +01:00
Oliver Booth 6fd7f8d84c
ci: only commit if working tree contains changes 2023-04-02 17:25:56 +01:00
Oliver Booth 2bfe0b24d0
[ci skip] ci: add trace logging for upm package.json generator 2023-04-02 17:16:18 +01:00
Oliver Booth e2a608f11d
build: output debug symbols for all projects (#75) 2023-04-02 17:06:18 +01:00
Oliver Booth e4431fca5f
ci: specify configuration for build steps
nightly should use Debug configuration
2023-04-02 16:46:34 +01:00
Oliver Booth 043aca8777
ci: skip redundant build steps
dotnet build now uses --no-restore flag, and dotnet pack now uses --no-build flag, since these steps are already done beforehand.
2023-04-02 16:43:31 +01:00
Oliver Booth 2c01b0e23a
build: remove Debug properties in test csproj
I believe these properties to be the cause of an issue with symbol verification when publishing X10D to nuget.org. I will report with status after this nightly run.
2023-04-02 15:53:54 +01:00
Oliver Booth 3b47c67a43
ci: upload dotnet pack artifacts 2023-04-02 15:44:10 +01:00
Oliver Booth fdc0c6aa35
perf: fix performance of intrisics
This changes removes the CPU-arch support provider interfaces that were introduced with 87b6dbdd56. That commit worsened the performance of the intrinsic methods because it resulted in a box when upcasting the System_SupportProvider value type to an interface, removing the potential for JIT to optimise the code path.
2023-04-02 15:17:28 +01:00
Oliver Booth 77836d51fc
fix(test): fix ref as of bc3dedfa7d 2023-04-02 04:54:58 +01:00
Oliver Booth 6b1dc2837a
test: bring coverage to 100% for Collections, Linq, Math, and Text 2023-04-02 04:16:33 +01:00
Oliver Booth 918b0b7612
ci: exclude cpu-arch support providers from coverage 2023-04-02 03:44:35 +01:00
Oliver Booth daff6ee3fe
fix: suppress .NET analyzer for test project 2023-04-02 03:31:37 +01:00
Oliver Booth bf73ecce32
test: add unit tests for ServiceCollectionExtensions 2023-04-02 03:31:19 +01:00
Oliver Booth ceaa254d7a
docs/perf: throw for null input 2023-04-02 03:12:04 +01:00
Oliver Booth 3d69cf362d
fix: CLSCompliant(false) for X10D.Unity 2023-04-02 03:11:22 +01:00
Oliver Booth 7e7825a170
fix: suppress CA1000
This analyzer warning does not apply here.
2023-04-02 03:10:58 +01:00
Oliver Booth bc3dedfa7d
fix: rename DebugEx to DebugUtility
Prevents .NET analysers from throwing errors.
2023-04-02 03:10:36 +01:00
Oliver Booth 08a4df0c64
perf: remove local method, exclude coverage for default arm 2023-04-02 02:56:50 +01:00
Oliver Booth 85f4e8c733
test: bring coverage to 100% for AddOrUpdate 2023-04-02 01:16:12 +01:00
Oliver Booth bfd3a5663d
[ci skip] ci: enable .NET analyzers for all projects 2023-04-02 01:11:14 +01:00
Oliver Booth c0bd7e0032
ci: exclude uncoverable projects from coverage 2023-04-02 01:07:35 +01:00
Oliver Booth 427563bfdb
[ci skip] test: CollectCoverage:true 2023-04-02 01:07:01 +01:00
Oliver Booth e5ec06cfe5
[ci skip] test: output debug symbols 2023-04-02 01:06:38 +01:00
Oliver Booth 58c333a173
ci: exclude default arm of Rune.Repeat from coverage 2023-04-02 01:05:27 +01:00
Oliver Booth 95cd3e8cbc
test: bring coverage to 100% for X10D.Collections.SpanExtensions 2023-04-02 00:36:31 +01:00
Oliver Booth f10ff4a36c
test: add tests for Span<T>.Count 2023-04-02 00:18:47 +01:00
Oliver Booth 586057ba3d
test: add tests for ReverseElements (#73) 2023-04-01 23:48:08 +01:00
Oliver Booth 6f16c0df3c
test: add tests for CorrectBoolean (#73) 2023-04-01 23:40:41 +01:00
Oliver Booth 34c49a2228
fix: fix bug introduced by d29663f081
Since value is a ref returned value, mutating it before returning was actually intended behaviour, since the reassignment causes the dictionary value to be mutated too.

Also, what game was this ref watching?!
2023-04-01 22:32:02 +01:00
Oliver Booth 9df0fde96d
ci(dotnet): run framework-specific tests separately
This change also specifies multiple dotnet-version values for the setup-dotnet step.
2023-04-01 22:21:14 +01:00
Oliver Booth 8a4e053c85
fix: expose internals to X10D.Tests project 2023-04-01 22:12:16 +01:00
Oliver Booth d29663f081
style: cleanup DictionaryExtensions
* Explicit type is used where type is not evident.
* Conditions are inlined with a ternary and the return value is used directly.
* System.Runtime.InteropServices is only imported for .NET >= 6.0
2023-04-01 22:05:10 +01:00
Oliver Booth b79435211a
style: remove redundant else branches 2023-04-01 22:01:07 +01:00
Oliver Booth d7bf9d1788
style(test): remove throws of NotImplementedException 2023-04-01 22:00:40 +01:00
Oliver Booth 23282db3a9
fix(test): import X10D.Core for NextSingle to work on < net6.0 2023-04-01 22:00:11 +01:00
Oliver Booth 87b6dbdd56
test: bring coverage to 100% for integer Unpack (#70) 2023-04-01 21:56:45 +01:00
Oliver Booth 5f21a2102d
feat: pack README.md in nupkg 2023-04-01 21:16:57 +01:00