custom types #283
custom types #283
776 passed, 2 failed and 34 skipped
Report | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Conda.Tests-macos-latest-3.10-net8.0.trx | 1✔️ | 5s | ||
Conda.Tests-macos-latest-3.10-net9.0.trx | 1✔️ | 4s | ||
CSnakes.Runtime.Tests-macos-latest-3.10-net8.0.trx | 120✔️ | 17✖️ | 10s | |
CSnakes.Runtime.Tests-macos-latest-3.10-net9.0.trx | 120✔️ | 17✖️ | 10s | |
CSnakes.Tests-macos-latest-3.10-net8.0.trx | 171✔️ | 11s | ||
CSnakes.Tests-macos-latest-3.10-net9.0.trx | 171✔️ | 10s | ||
Integration.Tests-macos-latest-3.10-net8.0.trx | 94✔️ | 1❌ | 17s | |
Integration.Tests-macos-latest-3.10-net9.0.trx | 98✔️ | 1❌ | 14s |
✔️ Conda.Tests-macos-latest-3.10-net8.0.trx
1 tests were completed in 5s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Conda.Tests.BasicTests | 1✔️ | 2s |
✔️ Conda.Tests-macos-latest-3.10-net9.0.trx
1 tests were completed in 4s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Conda.Tests.BasicTests | 1✔️ | 1s |
✔️ CSnakes.Runtime.Tests-macos-latest-3.10-net8.0.trx
137 tests were completed in 10s with 120 passed, 0 failed and 17 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
CSnakes.Runtime.Tests.Converter.BigIntegerConverterTest | 1✔️ | 46ms | ||
CSnakes.Runtime.Tests.Converter.BoolConverterTest | 2✔️ | 143ms | ||
CSnakes.Runtime.Tests.Converter.BytesConverterTest | 2✔️ | 137ms | ||
CSnakes.Runtime.Tests.Converter.DictionaryConverterTest | 1✔️ | 150ms | ||
CSnakes.Runtime.Tests.Converter.DoubleConverterTest | 10✔️ | 724ms | ||
CSnakes.Runtime.Tests.Converter.ListConverterTest | 1✔️ | 49ms | ||
CSnakes.Runtime.Tests.Converter.LongConverterTest | 7✔️ | 302ms | ||
CSnakes.Runtime.Tests.Converter.TupleConverterTests | 5✔️ | 365ms | ||
CSnakes.Runtime.Tests.Converter.UnicodeConverterTest | 6✔️ | 450ms | ||
CSnakes.Runtime.Tests.Locators.NuGetLocatorTests | 1✔️ | 7✖️ | 17ms | |
CSnakes.Runtime.Tests.Locators.PythonLocatorTests | 6✔️ | 10✖️ | 12ms | |
CSnakes.Runtime.Tests.Python.ImmortalTests | 5✔️ | 593ms | ||
CSnakes.Runtime.Tests.Python.ImportTests | 3✔️ | 304ms | ||
CSnakes.Runtime.Tests.Python.PyDictionaryTests | 6✔️ | 357ms | ||
CSnakes.Runtime.Tests.Python.PyObjectTests | 45✔️ | 3s | ||
CSnakes.Runtime.Tests.ServiceCollectionTests | 19✔️ | 172ms |
✔️ CSnakes.Runtime.Tests-macos-latest-3.10-net9.0.trx
137 tests were completed in 10s with 120 passed, 0 failed and 17 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
CSnakes.Runtime.Tests.Converter.BigIntegerConverterTest | 1✔️ | 64ms | ||
CSnakes.Runtime.Tests.Converter.BoolConverterTest | 2✔️ | 84ms | ||
CSnakes.Runtime.Tests.Converter.BytesConverterTest | 2✔️ | 136ms | ||
CSnakes.Runtime.Tests.Converter.DictionaryConverterTest | 1✔️ | 83ms | ||
CSnakes.Runtime.Tests.Converter.DoubleConverterTest | 10✔️ | 694ms | ||
CSnakes.Runtime.Tests.Converter.ListConverterTest | 1✔️ | 36ms | ||
CSnakes.Runtime.Tests.Converter.LongConverterTest | 7✔️ | 340ms | ||
CSnakes.Runtime.Tests.Converter.TupleConverterTests | 5✔️ | 244ms | ||
CSnakes.Runtime.Tests.Converter.UnicodeConverterTest | 6✔️ | 313ms | ||
CSnakes.Runtime.Tests.Locators.NuGetLocatorTests | 1✔️ | 7✖️ | 11ms | |
CSnakes.Runtime.Tests.Locators.PythonLocatorTests | 6✔️ | 10✖️ | 11ms | |
CSnakes.Runtime.Tests.Python.ImmortalTests | 5✔️ | 642ms | ||
CSnakes.Runtime.Tests.Python.ImportTests | 3✔️ | 132ms | ||
CSnakes.Runtime.Tests.Python.PyDictionaryTests | 6✔️ | 222ms | ||
CSnakes.Runtime.Tests.Python.PyObjectTests | 45✔️ | 3s | ||
CSnakes.Runtime.Tests.ServiceCollectionTests | 19✔️ | 135ms |
✔️ CSnakes.Tests-macos-latest-3.10-net8.0.trx
171 tests were completed in 11s with 171 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
CSnakes.Tests.CaseHelperTests | 10✔️ | 13ms | ||
CSnakes.Tests.GeneratedSignatureTests | 30✔️ | 6s | ||
CSnakes.Tests.PythonConstantTests+FloatTests | 1✔️ | 11ms | ||
CSnakes.Tests.TokenizerTests | 81✔️ | 312ms | ||
CSnakes.Tests.TypeReflectionTests | 49✔️ | 255ms |
✔️ CSnakes.Tests-macos-latest-3.10-net9.0.trx
171 tests were completed in 10s with 171 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
CSnakes.Tests.CaseHelperTests | 10✔️ | 1ms | ||
CSnakes.Tests.GeneratedSignatureTests | 30✔️ | 6s | ||
CSnakes.Tests.PythonConstantTests+FloatTests | 1✔️ | 8ms | ||
CSnakes.Tests.TokenizerTests | 81✔️ | 200ms | ||
CSnakes.Tests.TypeReflectionTests | 49✔️ | 277ms |
❌ Integration.Tests-macos-latest-3.10-net8.0.trx
95 tests were completed in 17s with 94 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Integration.Tests.ArgsTests | 6✔️ | 49ms | ||
Integration.Tests.BasicTests | 9✔️ | 36ms | ||
Integration.Tests.BufferTests | 27✔️ | 1❌ | 468ms | |
Integration.Tests.CustomTypesTests | 1✔️ | 13ms | ||
Integration.Tests.DefaultsTests | 7✔️ | 10ms | ||
Integration.Tests.ExceptionTests | 2✔️ | 7ms | ||
Integration.Tests.FalseReturns | 12✔️ | 40ms | ||
Integration.Tests.GeneratorTests | 2✔️ | 6ms | ||
Integration.Tests.NoneTests | 2✔️ | 3ms | ||
Integration.Tests.ReloadTests | 3✔️ | 26ms | ||
Integration.Tests.TestDependency | 1✔️ | 131ms | ||
Integration.Tests.TestDicts | 5✔️ | 23ms | ||
Integration.Tests.TupleTests | 17✔️ | 50ms |
❌ Integration.Tests.BufferTests
❌ TestNonBuffer
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.InvalidCastException)
Actual: typeof(System.MissingMethodException)
---- System.MissingMethodException : Cannot dynamically create an instance of type 'CSnakes.Runtime.Python.IPyBuffer'. Reason: Cannot create an instance of an interface.
❌ Integration.Tests-macos-latest-3.10-net9.0.trx
99 tests were completed in 14s with 98 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Integration.Tests.ArgsTests | 6✔️ | 23ms | ||
Integration.Tests.BasicTests | 9✔️ | 31ms | ||
Integration.Tests.BufferTests | 31✔️ | 1❌ | 213ms | |
Integration.Tests.CustomTypesTests | 1✔️ | 4ms | ||
Integration.Tests.DefaultsTests | 7✔️ | 3ms | ||
Integration.Tests.ExceptionTests | 2✔️ | 4ms | ||
Integration.Tests.FalseReturns | 12✔️ | 5ms | ||
Integration.Tests.GeneratorTests | 2✔️ | 5ms | ||
Integration.Tests.NoneTests | 2✔️ | 2ms | ||
Integration.Tests.ReloadTests | 3✔️ | 7ms | ||
Integration.Tests.TestDependency | 1✔️ | 222ms | ||
Integration.Tests.TestDicts | 5✔️ | 8ms | ||
Integration.Tests.TupleTests | 17✔️ | 38ms |
❌ Integration.Tests.BufferTests
❌ TestNonBuffer
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.InvalidCastException)
Actual: typeof(System.MissingMethodException)
---- System.MissingMethodException : Cannot dynamically create an instance of type 'CSnakes.Runtime.Python.IPyBuffer'. Reason: Cannot create an instance of an interface.
Annotations
Check failure on line 365 in src/Integration.Tests/BufferTests.cs
github-actions / .NET Test report macos-latest-3.10
Integration.Tests.BufferTests ► TestNonBuffer
Failed test found in:
Integration.Tests-macos-latest-3.10-net8.0.trx
Error:
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.InvalidCastException)
Actual: typeof(System.MissingMethodException)
---- System.MissingMethodException : Cannot dynamically create an instance of type 'CSnakes.Runtime.Python.IPyBuffer'. Reason: Cannot create an instance of an interface.
Raw output
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.InvalidCastException)
Actual: typeof(System.MissingMethodException)
---- System.MissingMethodException : Cannot dynamically create an instance of type 'CSnakes.Runtime.Python.IPyBuffer'. Reason: Cannot create an instance of an interface.
at Integration.Tests.BufferTests.TestNonBuffer() in /_/src/Integration.Tests/BufferTests.cs:line 365
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace -----
at System.RuntimeType.ActivatorCache..ctor(RuntimeType rt)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
at CSnakes.Runtime.PyObjectTypeConverter.PyObjectToManagedType(PyObject pyObject, Type destinationType) in /_/src/CSnakes.Runtime/PyObjectTypeConverter.cs:line 44
at CSnakes.Runtime.Python.PyObject.As(Type type) in /_/src/CSnakes.Runtime/Python/PyObject.cs:line 473
at CSnakes.Runtime.Python.PyObject.As[T]() in /_/src/CSnakes.Runtime/Python/PyObject.cs:line 440
at CSnakes.Runtime.TestBufferExtensions.TestBufferInternal.TestNonBuffer() in /_/src/Integration.Tests/obj/Debug/net8.0/generated/CSnakes.SourceGeneration/CSnakes.PythonStaticGenerator/TestBuffer.py.cs:line 449
Check failure on line 365 in src/Integration.Tests/BufferTests.cs
github-actions / .NET Test report macos-latest-3.10
Integration.Tests.BufferTests ► TestNonBuffer
Failed test found in:
Integration.Tests-macos-latest-3.10-net9.0.trx
Error:
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.InvalidCastException)
Actual: typeof(System.MissingMethodException)
---- System.MissingMethodException : Cannot dynamically create an instance of type 'CSnakes.Runtime.Python.IPyBuffer'. Reason: Cannot create an instance of an interface.
Raw output
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.InvalidCastException)
Actual: typeof(System.MissingMethodException)
---- System.MissingMethodException : Cannot dynamically create an instance of type 'CSnakes.Runtime.Python.IPyBuffer'. Reason: Cannot create an instance of an interface.
at Integration.Tests.BufferTests.TestNonBuffer() in /_/src/Integration.Tests/BufferTests.cs:line 365
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace -----
at System.RuntimeType.ActivatorCache..ctor(RuntimeType rt)
at System.RuntimeType.ActivatorCache.Create(RuntimeType type)
at System.RuntimeType.IGenericCacheEntry`1.CreateAndCache(RuntimeType type)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
at CSnakes.Runtime.PyObjectTypeConverter.PyObjectToManagedType(PyObject pyObject, Type destinationType) in /_/src/CSnakes.Runtime/PyObjectTypeConverter.cs:line 44
at CSnakes.Runtime.Python.PyObject.As(Type type) in /_/src/CSnakes.Runtime/Python/PyObject.cs:line 473
at CSnakes.Runtime.Python.PyObject.As[T]() in /_/src/CSnakes.Runtime/Python/PyObject.cs:line 440
at CSnakes.Runtime.TestBufferExtensions.TestBufferInternal.TestNonBuffer() in /_/src/Integration.Tests/obj/Debug/net9.0/generated/CSnakes.SourceGeneration/CSnakes.PythonStaticGenerator/TestBuffer.py.cs:line 449