Skip to content

IComparable improvements #805

IComparable improvements

IComparable improvements #805

Triggered via pull request July 31, 2023 20:57
Status Failure
Total duration 2h 15m 5s
Artifacts

build.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors
SnapshotTests.Comparable.ComprableGenerationTests.Using_omit_does_not_generate_comparable_code
VerifyException : Directory: D:\a\Vogen\Vogen\tests\SnapshotTests\Comparable\snapshots\snap-v4.6.1 New: - Received: ComprableGenerationTests.Using_omit_does_not_generate_comparable_code.DotNet6_0.received.txt Verified: ComprableGenerationTests.Using_omit_does_not_generate_comparable_code.verified.txt FileContent: New: Received: ComprableGenerationTests.Using_omit_does_not_generate_comparable_code.DotNet6_0.received.txt // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 using Vogen; namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")] [global::System.Text.Json.Serialization.JsonConverter(typeof(MyVoSystemTextJsonConverter))] [global::System.ComponentModel.TypeConverter(typeof(MyVoTypeConverter))] [global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(MyVoDebugView))] [global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")] public partial class MyVo : global::System.IEquatable<MyVo>, global::System.IEquatable<System.Int32> { #if DEBUG private readonly global::System.Diagnostics.StackTrace _stackTrace = null; #endif private readonly global::System.Boolean _isInitialized; private readonly System.Int32 _value; /// <summary> /// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown. /// </summary> public System.Int32 Value { [global::System.Diagnostics.DebuggerStepThroughAttribute] get { EnsureInitialized(); return _value; } } [global::System.Diagnostics.DebuggerStepThroughAttribute] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public MyVo() { #if DEBUG _stackTrace = new global::System.Diagnostics.StackTrace(); #endif _isInitialized = false; _value = default; } [global::System.Diagnostics.DebuggerStepThroughAttribute] private MyVo(System.Int32 value) { _value = value; _isInitialized = true; } /// <summary> /// Builds an instance from the provided underlying type. /// </summary> /// <param name="value">The underlying type.</param> /// <returns>An instance of this type.</returns> public static MyVo From(System.Int32 value) { MyVo instance = new MyVo(value); return instance; } // only called internally when something has been deserialized into // its primitive type. private stat
SnapshotTests.Comparable.ComprableGenerationTests.Using_underlying_uses_int_comparison
VerifyException : Directory: D:\a\Vogen\Vogen\tests\SnapshotTests\Comparable\snapshots\snap-v4.6.1 New: - Received: ComprableGenerationTests.Using_underlying_uses_int_comparison.DotNet6_0.received.txt Verified: ComprableGenerationTests.Using_underlying_uses_int_comparison.verified.txt FileContent: New: Received: ComprableGenerationTests.Using_underlying_uses_int_comparison.DotNet6_0.received.txt // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 using Vogen; namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")] [global::System.Text.Json.Serialization.JsonConverter(typeof(MyVoSystemTextJsonConverter))] [global::System.ComponentModel.TypeConverter(typeof(MyVoTypeConverter))] [global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(MyVoDebugView))] [global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")] public partial class MyVo : global::System.IEquatable<MyVo>, global::System.IEquatable<System.Int32> , global::System.IComparable<MyVo>, global::System.IComparable { #if DEBUG private readonly global::System.Diagnostics.StackTrace _stackTrace = null; #endif private readonly global::System.Boolean _isInitialized; private readonly System.Int32 _value; /// <summary> /// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown. /// </summary> public System.Int32 Value { [global::System.Diagnostics.DebuggerStepThroughAttribute] get { EnsureInitialized(); return _value; } } [global::System.Diagnostics.DebuggerStepThroughAttribute] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public MyVo() { #if DEBUG _stackTrace = new global::System.Diagnostics.StackTrace(); #endif _isInitialized = false; _value = default; } [global::System.Diagnostics.DebuggerStepThroughAttribute] private MyVo(System.Int32 value) { _value = value; _isInitialized = true; } /// <summary> /// Builds an instance from the provided underlying type. /// </summary> /// <param name="value">The underlying type.</param> /// <returns>An instance of this type.</returns> public static MyVo From(System.Int32 value) { MyVo instance = new MyVo(value); return instance; } // only called internally when something has been deserialized into // i
windows-latest
Process completed with exit code 1.
SnapshotTests.Comparable.ComprableGenerationTests.Using_omit_does_not_generate_comparable_code
VerifyException : Directory: /home/runner/work/Vogen/Vogen/tests/SnapshotTests/Comparable/snapshots/snap-v4.6.1 New: - Received: ComprableGenerationTests.Using_omit_does_not_generate_comparable_code.DotNet6_0.received.txt Verified: ComprableGenerationTests.Using_omit_does_not_generate_comparable_code.verified.txt FileContent: New: Received: ComprableGenerationTests.Using_omit_does_not_generate_comparable_code.DotNet6_0.received.txt // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 using Vogen; namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")] [global::System.Text.Json.Serialization.JsonConverter(typeof(MyVoSystemTextJsonConverter))] [global::System.ComponentModel.TypeConverter(typeof(MyVoTypeConverter))] [global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(MyVoDebugView))] [global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")] public partial class MyVo : global::System.IEquatable<MyVo>, global::System.IEquatable<System.Int32> { #if DEBUG private readonly global::System.Diagnostics.StackTrace _stackTrace = null; #endif private readonly global::System.Boolean _isInitialized; private readonly System.Int32 _value; /// <summary> /// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown. /// </summary> public System.Int32 Value { [global::System.Diagnostics.DebuggerStepThroughAttribute] get { EnsureInitialized(); return _value; } } [global::System.Diagnostics.DebuggerStepThroughAttribute] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public MyVo() { #if DEBUG _stackTrace = new global::System.Diagnostics.StackTrace(); #endif _isInitialized = false; _value = default; } [global::System.Diagnostics.DebuggerStepThroughAttribute] private MyVo(System.Int32 value) { _value = value; _isInitialized = true; } /// <summary> /// Builds an instance from the provided underlying type. /// </summary> /// <param name="value">The underlying type.</param> /// <returns>An instance of this type.</returns> public static MyVo From(System.Int32 value) { MyVo instance = new MyVo(value); return instance; } // only called internally when something has been deserialized into // its primitive type.
SnapshotTests.Comparable.ComprableGenerationTests.Using_underlying_uses_int_comparison
VerifyException : Directory: /home/runner/work/Vogen/Vogen/tests/SnapshotTests/Comparable/snapshots/snap-v4.6.1 New: - Received: ComprableGenerationTests.Using_underlying_uses_int_comparison.DotNet6_0.received.txt Verified: ComprableGenerationTests.Using_underlying_uses_int_comparison.verified.txt FileContent: New: Received: ComprableGenerationTests.Using_underlying_uses_int_comparison.DotNet6_0.received.txt // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 using Vogen; namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")] [global::System.Text.Json.Serialization.JsonConverter(typeof(MyVoSystemTextJsonConverter))] [global::System.ComponentModel.TypeConverter(typeof(MyVoTypeConverter))] [global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(MyVoDebugView))] [global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")] public partial class MyVo : global::System.IEquatable<MyVo>, global::System.IEquatable<System.Int32> , global::System.IComparable<MyVo>, global::System.IComparable { #if DEBUG private readonly global::System.Diagnostics.StackTrace _stackTrace = null; #endif private readonly global::System.Boolean _isInitialized; private readonly System.Int32 _value; /// <summary> /// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown. /// </summary> public System.Int32 Value { [global::System.Diagnostics.DebuggerStepThroughAttribute] get { EnsureInitialized(); return _value; } } [global::System.Diagnostics.DebuggerStepThroughAttribute] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public MyVo() { #if DEBUG _stackTrace = new global::System.Diagnostics.StackTrace(); #endif _isInitialized = false; _value = default; } [global::System.Diagnostics.DebuggerStepThroughAttribute] private MyVo(System.Int32 value) { _value = value; _isInitialized = true; } /// <summary> /// Builds an instance from the provided underlying type. /// </summary> /// <param name="value">The underlying type.</param> /// <returns>An instance of this type.</returns> public static MyVo From(System.Int32 value) { MyVo instance = new MyVo(value); return instance; } // only called internally when something has been deserialized into
ubuntu-latest
Process completed with exit code 1.
SnapshotTests.Comparable.ComprableGenerationTests.Using_omit_does_not_generate_comparable_code
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/Comparable/snapshots/snap-v4.6.1 New: - Received: ComprableGenerationTests.Using_omit_does_not_generate_comparable_code.DotNet6_0.received.txt Verified: ComprableGenerationTests.Using_omit_does_not_generate_comparable_code.verified.txt FileContent: New: Received: ComprableGenerationTests.Using_omit_does_not_generate_comparable_code.DotNet6_0.received.txt // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 using Vogen; namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")] [global::System.Text.Json.Serialization.JsonConverter(typeof(MyVoSystemTextJsonConverter))] [global::System.ComponentModel.TypeConverter(typeof(MyVoTypeConverter))] [global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(MyVoDebugView))] [global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")] public partial class MyVo : global::System.IEquatable<MyVo>, global::System.IEquatable<System.Int32> { #if DEBUG private readonly global::System.Diagnostics.StackTrace _stackTrace = null; #endif private readonly global::System.Boolean _isInitialized; private readonly System.Int32 _value; /// <summary> /// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown. /// </summary> public System.Int32 Value { [global::System.Diagnostics.DebuggerStepThroughAttribute] get { EnsureInitialized(); return _value; } } [global::System.Diagnostics.DebuggerStepThroughAttribute] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public MyVo() { #if DEBUG _stackTrace = new global::System.Diagnostics.StackTrace(); #endif _isInitialized = false; _value = default; } [global::System.Diagnostics.DebuggerStepThroughAttribute] private MyVo(System.Int32 value) { _value = value; _isInitialized = true; } /// <summary> /// Builds an instance from the provided underlying type. /// </summary> /// <param name="value">The underlying type.</param> /// <returns>An instance of this type.</returns> public static MyVo From(System.Int32 value) { MyVo instance = new MyVo(value); return instance; } // only called internally when something has been deserialized into // its primitive type.
SnapshotTests.Comparable.ComprableGenerationTests.Using_underlying_uses_int_comparison
VerifyException : Directory: /Users/runner/work/Vogen/Vogen/tests/SnapshotTests/Comparable/snapshots/snap-v4.6.1 New: - Received: ComprableGenerationTests.Using_underlying_uses_int_comparison.DotNet6_0.received.txt Verified: ComprableGenerationTests.Using_underlying_uses_int_comparison.verified.txt FileContent: New: Received: ComprableGenerationTests.Using_underlying_uses_int_comparison.DotNet6_0.received.txt // ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a source generator named Vogen (https://github.com/SteveDunn/Vogen) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0618 // Suppress warnings for 'Override methods on comparable types'. #pragma warning disable CA1036 // Suppress Error MA0097 : A class that implements IComparable<T> or IComparable should override comparison operators #pragma warning disable MA0097 // Suppress warning for 'The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.' // The generator copies signatures from the BCL, e.g. for `TryParse`, and some of those have nullable annotations. #pragma warning disable CS8669 // Suppress warnings about CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member' #pragma warning disable CS1591 using Vogen; namespace Whatever { [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Vogen", "1.0.0.0")] [global::System.Text.Json.Serialization.JsonConverter(typeof(MyVoSystemTextJsonConverter))] [global::System.ComponentModel.TypeConverter(typeof(MyVoTypeConverter))] [global::System.Diagnostics.DebuggerTypeProxyAttribute(typeof(MyVoDebugView))] [global::System.Diagnostics.DebuggerDisplayAttribute("Underlying type: System.Int32, Value = { _value }")] public partial class MyVo : global::System.IEquatable<MyVo>, global::System.IEquatable<System.Int32> , global::System.IComparable<MyVo>, global::System.IComparable { #if DEBUG private readonly global::System.Diagnostics.StackTrace _stackTrace = null; #endif private readonly global::System.Boolean _isInitialized; private readonly System.Int32 _value; /// <summary> /// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown. /// </summary> public System.Int32 Value { [global::System.Diagnostics.DebuggerStepThroughAttribute] get { EnsureInitialized(); return _value; } } [global::System.Diagnostics.DebuggerStepThroughAttribute] [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public MyVo() { #if DEBUG _stackTrace = new global::System.Diagnostics.StackTrace(); #endif _isInitialized = false; _value = default; } [global::System.Diagnostics.DebuggerStepThroughAttribute] private MyVo(System.Int32 value) { _value = value; _isInitialized = true; } /// <summary> /// Builds an instance from the provided underlying type. /// </summary> /// <param name="value">The underlying type.</param> /// <returns>An instance of this type.</returns> public static MyVo From(System.Int32 value) { MyVo instance = new MyVo(value); return instance; } // only called internally when something has been deserialized int
macOS-latest
Process completed with exit code 1.