0.9.78 release #272
dotnet-build-and-test.yaml
on: push
Matrix: build-and-test / build-and-test
Annotations
10 errors and 31 warnings
NexusMods.MnemonicDB.SourceGenerator.Tests.BasicTest.TestModel
VerifyException : Directory: /Users/runner/work/NexusMods.MnemonicDB/NexusMods.MnemonicDB/tests/NexusMods.MnemonicDB.SourceGenerator.Tests
NotEqual:
- Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
Verified: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.verified.cs
FileContent:
NotEqual:
Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
//HintName: NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.cs
#nullable enable
namespace NexusMods.MnemonicDB.SourceGenerator.Tests;
using global::System;
using global::System.Linq;
using global::System.Collections;
using global::System.Collections.Generic;
using global::TransparentValueObjects;
using global::NexusMods.MnemonicDB.Abstractions.Query;
using global::System.Reactive.Linq;
using global::DynamicData;
using global::Microsoft.Extensions.DependencyInjection;
using global::NexusMods.MnemonicDB.Abstractions;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Diagnostics.Contracts;
using __ABSTRACTIONS__ = NexusMods.MnemonicDB.Abstractions;
using __MODELS__ = NexusMods.MnemonicDB.Abstractions.Models;
using __SEGMENTS__ = NexusMods.MnemonicDB.Abstractions.IndexSegments;
using __DI__ = Microsoft.Extensions.DependencyInjection;
using __COMPARERS__ = NexusMods.MnemonicDB.Abstractions.ElementComparers;
public partial class MyModel : __MODELS__.IModelFactory<MyModel, MyModel.ReadOnly>
{
#region CRUD Methods
/// <summary>
/// A list of all required attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] RequiredAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// The primary attribute of the model, this really just means one of the required attributes of the model
/// if an entity has this attribute, it is considered a valid entity.
/// </summary>
public static __ABSTRACTIONS__.IAttribute PrimaryAttribute => NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name;
/// <summary>
/// A list of all attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] AllAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// Returns all MyModel entities in the database.
/// </summary>
public static __SEGMENTS__.Entities<MyModel.ReadOnly> All(__ABSTRACTIONS__.IDb db) {
return db.Datoms(PrimaryAttribute).AsModels<MyModel.ReadOnly>(db);
}
/// <summary>
/// Loads a model from the database, not providing any validation
/// </summary>
public static ReadOnly Load(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id) {
return new ReadOnly(db, id);
}
/// <summary>
/// Observe a model from the database, the stream ends when the model is deleted or otherwise invalidated
/// </summary>
public static IObservable<ReadOnly> Observe(IConnection conn, EntityId id)
{
return conn.ObserveDatoms(id)
.QueryWhenChanged(d => new ReadOnly(conn.Db, id))
.TakeWhile(model => model.IsValid());
}
/// <summary>
/// Observe all models of this type from the database
/// </summary>
public static IObservable<DynamicData.IChangeSet<ReadOnly, EntityId>> ObserveAll(IConnection conn)
{
return conn.ObserveDatoms(PrimaryAttribute)
.AsEntityIds()
.Transform(d => Load(conn.Db, d.E));
}
/// <summary>
/// Tries to get the entity with the given id from the database, if the model is invalid, it returns false.
/// </summary>
public static bool TryGet(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id, [NotNullWhen(true)] out MyModel.ReadOnly? result)
{
var model = Load(db, id);
if (model.IsValid()) {
result = model;
return true;
}
result = default;
|
build-and-test / Build and Test (macos-latest)
Process completed with exit code 1.
|
build-and-test / Build and Test (windows-latest)
The job was canceled because "macos-latest" failed.
|
build-and-test / Build and Test (windows-latest)
The operation was canceled.
|
build-and-test / Build and Test (ubuntu-latest)
The job was canceled because "macos-latest" failed.
|
NexusMods.MnemonicDB.SourceGenerator.Tests.BasicTest.TestModel
VerifyException : Directory: /home/runner/work/NexusMods.MnemonicDB/NexusMods.MnemonicDB/tests/NexusMods.MnemonicDB.SourceGenerator.Tests
NotEqual:
- Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
Verified: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.verified.cs
FileContent:
NotEqual:
Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
//HintName: NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.cs
#nullable enable
namespace NexusMods.MnemonicDB.SourceGenerator.Tests;
using global::System;
using global::System.Linq;
using global::System.Collections;
using global::System.Collections.Generic;
using global::TransparentValueObjects;
using global::NexusMods.MnemonicDB.Abstractions.Query;
using global::System.Reactive.Linq;
using global::DynamicData;
using global::Microsoft.Extensions.DependencyInjection;
using global::NexusMods.MnemonicDB.Abstractions;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Diagnostics.Contracts;
using __ABSTRACTIONS__ = NexusMods.MnemonicDB.Abstractions;
using __MODELS__ = NexusMods.MnemonicDB.Abstractions.Models;
using __SEGMENTS__ = NexusMods.MnemonicDB.Abstractions.IndexSegments;
using __DI__ = Microsoft.Extensions.DependencyInjection;
using __COMPARERS__ = NexusMods.MnemonicDB.Abstractions.ElementComparers;
public partial class MyModel : __MODELS__.IModelFactory<MyModel, MyModel.ReadOnly>
{
#region CRUD Methods
/// <summary>
/// A list of all required attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] RequiredAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// The primary attribute of the model, this really just means one of the required attributes of the model
/// if an entity has this attribute, it is considered a valid entity.
/// </summary>
public static __ABSTRACTIONS__.IAttribute PrimaryAttribute => NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name;
/// <summary>
/// A list of all attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] AllAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// Returns all MyModel entities in the database.
/// </summary>
public static __SEGMENTS__.Entities<MyModel.ReadOnly> All(__ABSTRACTIONS__.IDb db) {
return db.Datoms(PrimaryAttribute).AsModels<MyModel.ReadOnly>(db);
}
/// <summary>
/// Loads a model from the database, not providing any validation
/// </summary>
public static ReadOnly Load(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id) {
return new ReadOnly(db, id);
}
/// <summary>
/// Observe a model from the database, the stream ends when the model is deleted or otherwise invalidated
/// </summary>
public static IObservable<ReadOnly> Observe(IConnection conn, EntityId id)
{
return conn.ObserveDatoms(id)
.QueryWhenChanged(d => new ReadOnly(conn.Db, id))
.TakeWhile(model => model.IsValid());
}
/// <summary>
/// Observe all models of this type from the database
/// </summary>
public static IObservable<DynamicData.IChangeSet<ReadOnly, EntityId>> ObserveAll(IConnection conn)
{
return conn.ObserveDatoms(PrimaryAttribute)
.AsEntityIds()
.Transform(d => Load(conn.Db, d.E));
}
/// <summary>
/// Tries to get the entity with the given id from the database, if the model is invalid, it returns false.
/// </summary>
public static bool TryGet(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id, [NotNullWhen(true)] out MyModel.ReadOnly? result)
{
var model = Load(db, id);
if (model.IsValid()) {
result = model;
return true;
}
result = default;
r
|
build-and-test / Build and Test (ubuntu-latest)
The operation was canceled.
|
build-and-test / Build and Test (macos-13)
The job was canceled because "macos-latest" failed.
|
NexusMods.MnemonicDB.SourceGenerator.Tests.BasicTest.TestModel
VerifyException : Directory: /Users/runner/work/NexusMods.MnemonicDB/NexusMods.MnemonicDB/tests/NexusMods.MnemonicDB.SourceGenerator.Tests
NotEqual:
- Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
Verified: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.verified.cs
FileContent:
NotEqual:
Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
//HintName: NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.cs
#nullable enable
namespace NexusMods.MnemonicDB.SourceGenerator.Tests;
using global::System;
using global::System.Linq;
using global::System.Collections;
using global::System.Collections.Generic;
using global::TransparentValueObjects;
using global::NexusMods.MnemonicDB.Abstractions.Query;
using global::System.Reactive.Linq;
using global::DynamicData;
using global::Microsoft.Extensions.DependencyInjection;
using global::NexusMods.MnemonicDB.Abstractions;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Diagnostics.Contracts;
using __ABSTRACTIONS__ = NexusMods.MnemonicDB.Abstractions;
using __MODELS__ = NexusMods.MnemonicDB.Abstractions.Models;
using __SEGMENTS__ = NexusMods.MnemonicDB.Abstractions.IndexSegments;
using __DI__ = Microsoft.Extensions.DependencyInjection;
using __COMPARERS__ = NexusMods.MnemonicDB.Abstractions.ElementComparers;
public partial class MyModel : __MODELS__.IModelFactory<MyModel, MyModel.ReadOnly>
{
#region CRUD Methods
/// <summary>
/// A list of all required attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] RequiredAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// The primary attribute of the model, this really just means one of the required attributes of the model
/// if an entity has this attribute, it is considered a valid entity.
/// </summary>
public static __ABSTRACTIONS__.IAttribute PrimaryAttribute => NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name;
/// <summary>
/// A list of all attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] AllAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// Returns all MyModel entities in the database.
/// </summary>
public static __SEGMENTS__.Entities<MyModel.ReadOnly> All(__ABSTRACTIONS__.IDb db) {
return db.Datoms(PrimaryAttribute).AsModels<MyModel.ReadOnly>(db);
}
/// <summary>
/// Loads a model from the database, not providing any validation
/// </summary>
public static ReadOnly Load(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id) {
return new ReadOnly(db, id);
}
/// <summary>
/// Observe a model from the database, the stream ends when the model is deleted or otherwise invalidated
/// </summary>
public static IObservable<ReadOnly> Observe(IConnection conn, EntityId id)
{
return conn.ObserveDatoms(id)
.QueryWhenChanged(d => new ReadOnly(conn.Db, id))
.TakeWhile(model => model.IsValid());
}
/// <summary>
/// Observe all models of this type from the database
/// </summary>
public static IObservable<DynamicData.IChangeSet<ReadOnly, EntityId>> ObserveAll(IConnection conn)
{
return conn.ObserveDatoms(PrimaryAttribute)
.AsEntityIds()
.Transform(d => Load(conn.Db, d.E));
}
/// <summary>
/// Tries to get the entity with the given id from the database, if the model is invalid, it returns false.
/// </summary>
public static bool TryGet(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id, [NotNullWhen(true)] out MyModel.ReadOnly? result)
{
var model = Load(db, id);
if (model.IsValid()) {
result = model;
return true;
}
result = default;
|
build-and-test / Build and Test (macos-13)
The operation was canceled.
|
build-and-test / Build and Test (macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build-and-test / Build and Test (macos-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L6
Missing XML comment for publicly visible type or member 'AnalyzedAttribute'
|
build-and-test / Build and Test (macos-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L8
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.Name'
|
build-and-test / Build and Test (macos-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L9
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.FieldName'
|
build-and-test / Build and Test (macos-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L11
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.ContextualName'
|
build-and-test / Build and Test (macos-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L27
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsReference'
|
build-and-test / Build and Test (macos-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L28
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsCollection'
|
build-and-test / Build and Test (macos-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L29
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsScalar'
|
build-and-test / Build and Test (macos-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L30
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsIndexed'
|
build-and-test / Build and Test (macos-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L31
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsOptional'
|
build-and-test / Build and Test (macos-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L53
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.Flags'
|
build-and-test / Build and Test (ubuntu-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L6
Missing XML comment for publicly visible type or member 'AnalyzedAttribute'
|
build-and-test / Build and Test (ubuntu-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L8
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.Name'
|
build-and-test / Build and Test (ubuntu-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L9
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.FieldName'
|
build-and-test / Build and Test (ubuntu-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L11
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.ContextualName'
|
build-and-test / Build and Test (ubuntu-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L27
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsReference'
|
build-and-test / Build and Test (ubuntu-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L28
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsCollection'
|
build-and-test / Build and Test (ubuntu-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L29
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsScalar'
|
build-and-test / Build and Test (ubuntu-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L30
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsIndexed'
|
build-and-test / Build and Test (ubuntu-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L31
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsOptional'
|
build-and-test / Build and Test (ubuntu-latest):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L53
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.Flags'
|
build-and-test / Build and Test (macos-13):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L6
Missing XML comment for publicly visible type or member 'AnalyzedAttribute'
|
build-and-test / Build and Test (macos-13):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L8
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.Name'
|
build-and-test / Build and Test (macos-13):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L9
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.FieldName'
|
build-and-test / Build and Test (macos-13):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L11
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.ContextualName'
|
build-and-test / Build and Test (macos-13):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L27
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsReference'
|
build-and-test / Build and Test (macos-13):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L28
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsCollection'
|
build-and-test / Build and Test (macos-13):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L29
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsScalar'
|
build-and-test / Build and Test (macos-13):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L30
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsIndexed'
|
build-and-test / Build and Test (macos-13):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L31
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.IsOptional'
|
build-and-test / Build and Test (macos-13):
src/NexusMods.MnemonicDB.SourceGenerator/AnalyzedAttribute.cs#L53
Missing XML comment for publicly visible type or member 'AnalyzedAttribute.Flags'
|