Skip to content

Added support for expressions in keypath building #1644

Added support for expressions in keypath building

Added support for expressions in keypath building #1644

GitHub Actions / Results Unity Linux Mono_Net4 failed Mar 5, 2024 in 0s

Results Unity Linux Mono_Net4 ❌

Tests failed

❌ TestResults.xml

6039 tests were completed in 191s with 5378 passed, 2 failed and 659 skipped.

Test suite Passed Failed Skipped Time
Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.NotificationTests. 57✔️ 2❌ 2✖️ 12s

❌ Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.NotificationTests.

Realms.Tests.Database.NotificationTests
  ✔️ BackLinkInObjectShouldNotFireNotificationOnChange
  ✔️ CollectionPropertiesOfDifferentTypeShouldNotFireNotificationsOnChange
  ✔️ CollectionPropertiesOfSameTypeShouldNotFireNotificationsOnChange
  ✖️ DictionaryNotificationToken_KeepsCollectionAlive
  ✔️ DictionaryOnCollectionChangedShouldFireOnAddRemove
  ✔️ DictionarySubscribeInTransaction
  ✔️ DictionaryUnsubscribeInNotificationCallback
  ✔️ KeyPath_CanBeBuiltFromExpressions
  ✔️ KeyPath_ImplicitOperator_CorrectlyConvertsFromString
  ❌ KeyPath_WithInvalidExpressions_ThrowsException
	  Expected: <System.ArgumentException> and property Message equal to "The input expression cannot be null (Parameter 'expression')"
	  But was:  "The input expression cannot be null
	Parameter name: expression"
	
  ✔️ KeyPathsCollection_CanBeBuiltFromExpressions
  ✔️ KeyPathsCollection_CanBeBuiltInDifferentWays
  ❌ KeyPathsCollection_WithInvalidExpressions_ThrowsExceptions
	  Expected: <System.ArgumentException> and property Message equal to "The input expression cannot be null (Parameter 'expression')"
	  But was:  "The input expression cannot be null
	Parameter name: expression"
	
  ✔️ Link_ShouldOnlyFireNotificationForReassignment
  ✔️ List_WhenParentIsDeleted_RaisesReset
  ✔️ List_WhenTransactionHasBothAddAndRemove_ShouldReset
  ✔️ List_WhenUnsubscribed_ShouldStopReceivingNotifications
  ✔️ ListOnCollectionChangedShouldFireOnAddMoveReplaceRemove
  ✔️ ListReplace_RaisesReplaceNotifications
  ✔️ ListShouldSendNotifications
  ✔️ ModifiedIndices_ReportCorrectlyForOldAndNewVersions
  ✔️ PrimitivePropertyInObjectShouldFireNotificationOnChange
  ✔️ RealmError_WhenNoSubscribers_OutputsMessageInConsole
  ✔️ ResultOnCollectionChangedShouldFireOnAddRemove
  ✔️ Results_WhenTransactionHasBothAddAndRemove_ShouldReset
  ✔️ Results_WhenUnsubscribed_ShouldStopReceivingNotifications
  ✔️ ResultsShouldSendNotifications
  ✔️ SetOnCollectionChangedShouldFireOnAddRemove
  ✔️ ShouldTriggerRealmChangedEvent
  ✔️ SubscribeForNotifications_InvokedWithInitialCallback
  ✔️ SubscribeWithKeypaths_AnyKeypath_RaisesNotificationsForResults
  ✔️ SubscribeWithKeypaths_Backlinks
  ✔️ SubscribeWithKeypaths_DisposingToken_CancelNotifications
  ✔️ SubscribeWithKeypaths_FullKeyPath_SameAsFourLevelsDepth
  ✔️ SubscribeWithKeypaths_MappedClass_WorksCorrectly
  ✔️ SubscribeWithKeypaths_MappedProperty_UsesOriginalName
  ✔️ SubscribeWithKeypaths_MultipleKeypaths
  ✔️ SubscribeWithKeypaths_NestedProperties_WorksWithCollections
  ✔️ SubscribeWithKeypaths_NestedProperties_WorksWithScalar
  ✔️ SubscribeWithKeypaths_OnCollection_Dictionary
  ✔️ SubscribeWithKeypaths_OnCollection_DictionaryRemapped
  ✔️ SubscribeWithKeypaths_OnCollection_List
  ✔️ SubscribeWithKeypaths_OnCollection_ListRemapped
  ✔️ SubscribeWithKeypaths_OnCollection_Set
  ✔️ SubscribeWithKeypaths_OnCollection_SetRemapped
  ✔️ SubscribeWithKeypaths_ShallowKeypath_RaisesOnlyCollectionNotifications
  ✔️ SubscribeWithKeypaths_TopLevelProperties_WorksWithCollection
  ✔️ SubscribeWithKeypaths_TopLevelProperties_WorksWithScalar
  ✔️ SubscribeWithKeypaths_WildCard_CanGetDeeperThanFourLevels
  ✔️ SubscribeWithKeypaths_WildCard_WorksAfterCollectionProperty
  ✔️ SubscribeWithKeypaths_WildCard_WorksAfterLinkProperty
  ✔️ SubscribeWithKeypaths_WildCard_WorksWithMultipleLevels
  ✔️ SubscribeWithKeypaths_WildCard_WorksWithPropertyAfterward
  ✔️ SubscribeWithKeypaths_WildCard_WorksWithTopLevel
  ✖️ SubscribeWithKeypaths_WildcardOnScalarProperty_Throws
  ✔️ SubscribeWithKeypaths_WithEmptyOrWhiteSpaceKeypaths_Throws
  ✔️ SubscribeWithKeypaths_WithNonRealmObjectType_Throws
  ✔️ SubscribeWithKeypaths_WithRepeatedKeypath_IgnoresRepeated
  ✔️ SubscribeWithKeypaths_WithUnknownProperty_Throws
  ✔️ UnsubscribeInNotificationCallback
  ✔️ WhenSynchronizationContextExists_ShouldAutoRefresh

Annotations

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Unity Linux Mono_Net4

Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.NotificationTests. ► Realms.Tests.Database.NotificationTests ► KeyPath_WithInvalidExpressions_ThrowsException

Failed test found in:
  TestResults.xml
Error:
    Expected: <System.ArgumentException> and property Message equal to "The input expression cannot be null (Parameter 'expression')"
    But was:  "The input expression cannot be null
  Parameter name: expression"
  
Raw output
at Realms.Tests.Database.NotificationTests.KeyPath_WithInvalidExpressions_ThrowsException () [0x0006c] in <541ce18dfb0c4dfda91998947fddcb39>:0

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Unity Linux Mono_Net4

Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.NotificationTests. ► Realms.Tests.Database.NotificationTests ► KeyPathsCollection_WithInvalidExpressions_ThrowsExceptions

Failed test found in:
  TestResults.xml
Error:
    Expected: <System.ArgumentException> and property Message equal to "The input expression cannot be null (Parameter 'expression')"
    But was:  "The input expression cannot be null
  Parameter name: expression"
  
Raw output
at Realms.Tests.Database.NotificationTests.KeyPathsCollection_WithInvalidExpressions_ThrowsExceptions () [0x0003d] in <541ce18dfb0c4dfda91998947fddcb39>:0