Skip to content
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2ea0796
Refactor SelectionSet equality to recover type data
calvincestari Sep 24, 2025
bfeb4c4
Adds equality tests
calvincestari Sep 24, 2025
8a53f79
Adds another test for type cast edge case
calvincestari Sep 24, 2025
d417bee
Fix incorrect DataDict test key names
calvincestari Sep 25, 2025
57526e6
Refactor type casting
calvincestari Sep 25, 2025
469ef00
Fix for nullable objects being null in equality checks
calvincestari Sep 27, 2025
7ae6874
Add integration test
calvincestari Sep 27, 2025
f28dff6
Refactor scalar casting logic for nullable object types
calvincestari Sep 29, 2025
cc8a2de
Refactor scalar casting logic for lists
calvincestari Sep 29, 2025
df986c5
Fix and add tests
calvincestari Sep 29, 2025
893a4f5
Remove test mock infrastructure hash and equality implementations
calvincestari Sep 29, 2025
0974a19
debugging
calvincestari Oct 2, 2025
26e9a2a
debugging
calvincestari Oct 2, 2025
2997746
debugging
calvincestari Oct 2, 2025
8d22e46
debugging
calvincestari Oct 2, 2025
3041d77
debugging
calvincestari Oct 3, 2025
bb8db91
debugging
calvincestari Oct 3, 2025
3badf52
debugging
calvincestari Oct 3, 2025
494f9c8
debugging
calvincestari Oct 3, 2025
5aa2576
debugging
calvincestari Oct 3, 2025
7bea696
Revert "debugging"
calvincestari Oct 3, 2025
206689a
debugging
calvincestari Oct 3, 2025
ec8b168
Revert "debugging"
calvincestari Oct 3, 2025
fef4e3d
debugging
calvincestari Oct 3, 2025
df1ac1e
debugging
calvincestari Oct 3, 2025
b7e2b10
debugging
calvincestari Oct 3, 2025
a99e646
Revert "debugging"
calvincestari Oct 3, 2025
3e6f98f
debugging
calvincestari Oct 3, 2025
eceb242
debugging
calvincestari Oct 3, 2025
a798963
debugging
calvincestari Oct 3, 2025
42ed353
Revert "debugging"
calvincestari Oct 3, 2025
9876b04
Revert "debugging"
calvincestari Oct 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions Tests/ApolloInternalTestHelpers/MockOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ open class AbstractMockSelectionSet<F, S: SchemaMetadata>: RootSelectionSet, Has
public subscript<T: MockSelectionSet>(dynamicMember key: String) -> T? {
__data[key]
}

public static func == (lhs: MockSelectionSet, rhs: MockSelectionSet) -> Bool {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SelectionSet now has it's own equality implementation.

lhs.__data == rhs.__data
}

public func hash(into hasher: inout Hasher) {
hasher.combine(__data)
}
}

public typealias MockSelectionSet = AbstractMockSelectionSet<NoFragments, MockSchemaMetadata>
Expand Down
Loading
Loading