Skip to content

RNET-1155: Add more validation to .Filter arguments #2679

RNET-1155: Add more validation to .Filter arguments

RNET-1155: Add more validation to .Filter arguments #2679

GitHub Actions / Results Unity linux Mono-Net4 failed Jun 6, 2024 in 1s

5438 passed, 1 failed and 681 skipped

Tests failed

❌ TestResults.xml

6120 tests were completed in 165s with 5438 passed, 1 failed and 681 skipped.

Test suite Passed Failed Skipped Time
Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.CollectionTests. 81✅ 1❌ 3⚪ 17s

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

Realms.Tests.Database.CollectionTests
  ✅ Collection_GetEnumerator_WhenCollectionDeleted_ReturnsEmpty
  ✅ Dict_Filter_WithRemappedProperty
  ✅ FrozenList_DoesntChange
  ⚪ FrozenList_GetsGarbageCollected
  ⚪ FrozenQuery_GetsGarbageCollected
  ✅ FrozenQuery_WhenFiltered_DoesntChange
  ✅ FrozenQuery_WhenOrderedWithLINQ_DoesntChange
  ✅ FrozenQuery_WhenOrderedWithString_DoesntChange
  ✅ Fts_Linq_WhenTermsIsNull_Throws
  ✅ Fts_OnNonIndexedProperty_Throws
  ✅ IList_IsReadOnly_WhenRealmIsReadOnly_ShouldBeTrue
  ✅ Insert_WhenIndexIsEqualToCount_ShouldWork
  ✅ List_Filter_WithRemappedProperty
  ✅ List_Freeze_ReturnsAFrozenCopy
  ✅ List_Freeze_WhenFrozen_ReturnsSameInstance
  ✅ List_Freeze_WhenUnmanaged_Throws
  ✅ List_GetAtIndex_WhenIndexIsOutOfRange_ShouldThrow
  ✅ List_IndexOf_WhenObjectBelongsToADifferentRealm_ShouldThrow
  ✅ List_WhenParentIsDeleted_ShouldBeInvalid
  ✅ List_WhenRealmIsClosed_ShouldBeInvalid
  ✅ ListAdd_WhenValueIsNull_ShouldThrow
  ✅ ListAsRealmQueryable_RaisesNotifications
  ✅ ListAsRealmQueryable_WhenNotRealmList_Throws
  ✅ ListFilter_CanBeFilteredWithLinq
  ✅ ListFilter_CanBeFilteredWithStringPredicate
  ✅ ListFilter_CanSortResults
  ✅ ListFilter_InvalidPredicate_Throws
  ✅ ListFilter_NoArguments_Throws
  ✅ ListFilter_PassesArgumentsCorrectly
  ✅ ListFilter_ReturnsCorrectElementAtResult
  ✅ ListFilter_SupportsCollectionIndexes
  ✅ ListFilter_WhenNotRealmList_Throws
  ✅ ListInsert_WhenIndexIsMoreThanCount_ShouldThrow
  ✅ ListInsert_WhenIndexIsNegative_ShouldThrow
  ✅ ListOfEmbeddedAdd_WhenValueIsNull_ShouldThrow
  ✅ ObjectFromAnotherRealm_ThrowsRealmException
  ✅ ObjectList_WhenEnumeratingAndRemovingFromList_ShouldBeStable
  ✅ ObjectList_WhenEnumeratingAndRemovingFromRealm_ShouldBeStable
  ✅ ObjectList_WhenEnumeratingFrozenList_ShouldBeStable
  ⚪ PrimitiveList_WhenEnumerating_ShouldBeStable
  ✅ Query_Freeze_ReturnsAFrozenCopy
  ✅ Query_Freeze_WhenFrozen_ReturnsSameInstance
  ✅ Query_Freeze_WhenUnmanaged_Throws
  ✅ QueryArgument_ToString
  ✅ QueryFilter_WithArgumentsObject_ShouldMatch
  ✅ QueryFilter_WithArgumentsObjectList_ShouldMatch
  ❌ QueryFilter_WithArgumentsUnmanagedObjects_ShouldThrow
	at Realms.Tests.Database.CollectionTests.QueryFilter_WithArgumentsUnmanagedObjects_ShouldThrow () [0x00017] in <6e423aef4f124d2f949889299b1a6e3f>:0
  ✅ QueryFilter_WithMultipleArguments_ShouldMatch
  ✅ QueryFilter_WithNullArguments
  ✅ RealmResults_ICollection_UnsupportedAPI
  ✅ Results_Filter_WhenArgumentIsDeletedObject_Throws
  ✅ Results_Filter_WithRemappedProperty
  ✅ Results_GetAtIndex_WhenIndexIsOutOfRange_ShouldThrow
  ✅ Results_GetFiltered_AfterLINQ
  ✅ Results_GetFiltered_BeforeLINQ
  ✅ Results_GetFiltered_Distinct
  ✅ Results_GetFiltered_FollowLinks
  ✅ Results_GetFiltered_Limit
  ✅ Results_GetFiltered_List
  ✅ Results_GetFiltered_NamedBacklink
  ✅ Results_GetFiltered_Notifications
  ✅ Results_GetFiltered_SanityTest
  ✅ Results_GetFiltered_Sorted
  ✅ Results_GetFiltered_UnnamedBacklink
  ✅ Results_GetFiltered_WhenPredicateIsInvalid_Throws
  ✅ Results_WhenEnumerating_ShouldBeStable
  ✅ Results_WhenRealmIsClosed_ShouldBeInvalid
  ✅ Set_EmitsModifiedNotifications
  ✅ Set_Filter_WithRemappedProperty
  ✅ Set_WhenIndexIsMoreThanCount_ShouldThrow
  ✅ Set_WhenIndexIsNegative_ShouldThrow
  ✅ Set_WhenObjectIsManaged_ShouldWork
  ✅ Set_WhenObjectIsUnmanaged_ShouldAddToRealm
  ✅ SetAdd_WhenValueIsNull_ShouldThrow
  ✅ SetAsRealmQueryable_RaisesNotifications
  ✅ SetAsRealmQueryable_WhenNotRealmSet_Throws
  ✅ SetFilter_CanBeFilteredWithLinq
  ✅ SetFilter_CanBeFilteredWithStringPredicate
  ✅ SetFilter_CanSortResults
  ✅ SetFilter_InvalidPredicate_Throws
  ✅ SetFilter_NoArguments_Throws
  ✅ SetFilter_PassesArgumentsCorrectly
  ✅ SetFilter_ReturnsCorrectElementAtResult
  ✅ SetFilter_SupportsCollectionIndexes
  ✅ SetFilter_WhenNotRealmSet_Throws

Annotations

Check failure on line 0 in TestResults.xml

See this annotation in the file changed.

@github-actions github-actions / Results Unity linux Mono-Net4

Tests.Unity.Realm.Tests.dll.Realms.Tests.Database.CollectionTests. ► Realms.Tests.Database.CollectionTests ► QueryFilter_WithArgumentsUnmanagedObjects_ShouldThrow

Failed test found in:
  TestResults.xml
Error:
  at Realms.Tests.Database.CollectionTests.QueryFilter_WithArgumentsUnmanagedObjects_ShouldThrow () [0x00017] in <6e423aef4f124d2f949889299b1a6e3f>:0
Raw output
at Realms.Tests.Database.CollectionTests.QueryFilter_WithArgumentsUnmanagedObjects_ShouldThrow () [0x00017] in <6e423aef4f124d2f949889299b1a6e3f>:0