Minilcm diff API #326
fw-lite.yaml
on: pull_request
Build FW Lite and run tests
7m 11s
Publish FW Lite app for Mac
0s
Publish FW Lite app for Linux
0s
Publish FW Lite app for Windows
0s
Create Release
0s
Annotations
10 errors and 11 warnings
FwDataMiniLcmBridge.Tests.MiniLcmTests.CreateEntryTests.CanCreateEntry_AutoFaker
Expected property createdEntry.Senses[0].PartOfSpeech to be "Place" with a length of 5, but "" has a length of 0, differs near "" (index 0).
Expected property createdEntry.Senses[0].PartOfSpeechId to be {381049e2-877c-6c1d-f4b6-37559a8a7d2a}, but found <null>.
Expected property createdEntry.Senses[0].SemanticDomains to be a collection with 1 item(s), but found an empty collection.
Expected property createdEntry.Components[0].Id to be {b91d882b-4a73-489c-4b4e-61fda9c09adc}, but found {00000000-0000-0000-0000-000000000000}.
Expected property createdEntry.Components[0].ComplexFormHeadword to be "test component 1" with a length of 16, but "tan" has a length of 3, differs near "an" (index 1).
Expected property createdEntry.Components[0].ComponentHeadword to be "Savings Account" with a length of 15, but "test component 1" has a length of 16, differs near "tes" (index 0).
Expected property createdEntry.ComplexForms[0].Id to be {a022d4c0-6e0a-08fb-7733-031f555ef1ab}, but found {00000000-0000-0000-0000-000000000000}.
Expected property createdEntry.ComplexForms[0].ComplexFormHeadword to be "Fantastic" with a length of 9, but "test complex form 1" has a length of 19, differs near "tes" (index 0).
Expected property createdEntry.ComplexForms[0].ComponentHeadword to be "test complex form 1" with a length of 19, but "tan" has a length of 3, differs near "an" (index 1).
Expected property createdEntry.ComplexFormTypes to be a collection with 1 item(s), but
{
MiniLcm.Models.ComplexFormType
{
DeletedAt = <null>,
Id = {fec038ed-6a8c-4fa5-bc96-a4f515a98c50},
Name = {[MiniLcm.Models.WritingSystemId
{
Code = "en"
}] = "Unspecified Complex Form"
}
,
Version = <null>
},
MiniLcm.Models.ComplexFormType
{
DeletedAt = <null>,
Id = {f66de18f-5c1b-41e4-9cb2-56dbb5735a81},
Name = {[MiniLcm.Models.WritingSystemId
{
Code = "en"
}] = "invoice"
}
,
Version = <null>
}
}
contains 1 item(s) more than
{
MiniLcm.Models.ComplexFormType
{
DeletedAt = <null>,
Id = {f66de18f-5c1b-41e4-9cb2-56dbb5735a81},
Name = {[MiniLcm.Models.WritingSystemId
{
Code = "en"
}] = "invoice"
}
,
Version = <null>
}
}.
With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Exclude member when (info.Name == "Version")
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.
|
FwLiteProjectSync.Tests.UpdateDiffTests.ExampleSentenceDiffShouldUpdateAllFields:
backend/FwLite/FwLiteProjectSync.Tests/UpdateDiffTests.cs#L51
Expected property before.Version to be "driver", but found <null>.
With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Exclude member Id
- Exclude member SenseId
- Exclude member DeletedAt
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.
|
FwLiteProjectSync.Tests.UpdateDiffTests.SenseDiffShouldUpdateAllFields:
backend/FwLite/FwLiteProjectSync.Tests/UpdateDiffTests.cs#L40
Expected property before.Version to be "Human", but found <null>.
With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Exclude member Id
- Exclude member EntryId
- Exclude member DeletedAt
- Exclude member ExampleSentences
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.
|
FwLiteProjectSync.Tests.UpdateDiffTests.EntryDiffShouldUpdateAllFields:
backend/FwLite/FwLiteProjectSync.Tests/UpdateDiffTests.cs#L25
Expected property before.Version to be "Identity", but found <null>.
With configuration:
- Use declared types and members
- Compare enums by value
- Compare tuples by their properties
- Compare anonymous types by their properties
- Compare records by their members
- Include non-browsable members
- Exclude member Id
- Exclude member DeletedAt
- Exclude member Senses
- Exclude member Components
- Exclude member ComplexForms
- Exclude member ComplexFormTypes
- Match member by name (or throw)
- Be strict about the order of items in byte arrays
- Without automatic conversion.
|
FwLiteProjectSync.Tests.EntrySyncTests.CanChangeComplexFormTypeViaSync
Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'table "Commits" already exists'.
|
FwLiteProjectSync.Tests.EntrySyncTests.CanChangeComplexFormVisSync_Components
Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'table "Commits" already exists'.
|
FwLiteProjectSync.Tests.EntrySyncTests.CanSyncRandomEntries
Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'table "Commits" already exists'.
|
FwLiteProjectSync.Tests.EntrySyncTests.CanChangeComplexFormViaSync_ComplexForms
Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'table "Commits" already exists'.
|
FwLiteProjectSync.Tests.SyncTests.SyncFailsWithMismatchedProjectIds
Microsoft.EntityFrameworkCore.DbUpdateException : An error occurred while saving the entity changes. See the inner exception for details.
---- Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'no such table: ProjectData'.
|
FwLiteProjectSync.Tests.SyncTests.CreatingAnEntryInEachProjectSyncsAcrossBoth
Microsoft.EntityFrameworkCore.DbUpdateException : An error occurred while saving the entity changes. See the inner exception for details.
---- Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'no such table: ProjectData'.
|
Build FW Lite and run tests:
backend/FwLite/FwDataMiniLcmBridge.Tests/Fixtures/MockFwProjectList.cs#L6
Parameter 'IOptions<FwDataBridgeConfig> config' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
|
Build FW Lite and run tests:
backend/FwLite/MiniLcm/InMemoryApi.cs#L214
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
Build FW Lite and run tests:
backend/FwLite/MiniLcm/InMemoryApi.cs#L219
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
Build FW Lite and run tests:
backend/FwLite/MiniLcm/InMemoryApi.cs#L251
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
Build FW Lite and run tests:
backend/FwLite/MiniLcm/InMemoryApi.cs#L270
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
Build FW Lite and run tests:
backend/FwLite/FwDataMiniLcmBridge/LcmUtils/LcmThreadedProgress.cs#L10
The event 'LcmThreadedProgress.Canceling' is never used
|
Build FW Lite and run tests:
backend/FwLite/FwDataMiniLcmBridge/Api/UpdateProxy/UpdateSenseProxy.cs#L121
Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method (https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD110.md)
|
Build FW Lite and run tests:
backend/FwLite/FwDataMiniLcmBridge/Api/UpdateProxy/UpdateEntryProxy.cs#L53
Observe the awaitable result of this method call by awaiting it, assigning to a variable, or passing it to another method (https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD110.md)
|
Build FW Lite and run tests:
backend/FwLite/LcmCrdt/Changes/RemoveSemanticDomainChange.cs#L11
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
Build FW Lite and run tests:
backend/FwLite/FwLiteProjectSync/DryRunMiniLcmApi.cs#L30
The switch expression does not handle some values of its input type (it is not exhaustive) involving an unnamed enum value. For example, the pattern '(MiniLcm.Models.WritingSystemType)2' is not covered.
|
Build FW Lite and run tests:
backend/FwLite/LocalWebApp/SyncService.cs#L14
Parameter 'factory' is unread.
|