Skip to content

Commit 9cab672

Browse files
Expose cacheKey function as public (#2014)
* Expose cacheKey function as public * Remove @testable attribute to require public access to cacheKey function
1 parent f2a4983 commit 9cab672

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/Apollo/GraphQLSelectionSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public struct GraphQLField: GraphQLSelection {
6161
self.type = type
6262
}
6363

64-
func cacheKey(with variables: [String: JSONEncodable]?) throws -> String {
64+
public func cacheKey(with variables: [String: JSONEncodable]?) throws -> String {
6565
if
6666
let argumentValues = try arguments?.evaluate(with: variables),
6767
argumentValues.apollo.isNotEmpty {

Tests/ApolloTests/CacheKeyForFieldTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import XCTest
2-
@testable import Apollo
2+
import Apollo
33
import ApolloTestSupport
44
import StarWarsAPI
55

0 commit comments

Comments
 (0)