Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SelectionSet to receive [String: Any] for initialization when create mock object #102

Merged
merged 16 commits into from
Nov 8, 2023
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
fix: set help method to private
  • Loading branch information
Cookiezby committed Nov 4, 2023
commit f37430ce9a987a05a06772c3f3b56a36731fceb1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extension RootSelectionSet {
/// Convert dictionary type [String: Any] to [String: AnyHashable]
/// - Parameter dict: [String: Any] type dictionary
/// - Returns: converted [String: AnyHashable] type dictionary
public static func convertToAnyHashableValueDict(dict: [String: Any]) throws -> [String: AnyHashable] {
private static func convertToAnyHashableValueDict(dict: [String: Any]) throws -> [String: AnyHashable] {
var result = [String: AnyHashable]()

for (key, value) in dict {
Expand All @@ -51,7 +51,7 @@ extension RootSelectionSet {
/// Convert Any type Array type to AnyHashable type Array
/// - Parameter data: Any type Array
/// - Returns: AnyHashable type Array
public static func convertToAnyHashableArray(data: [Any]) throws -> [AnyHashable] {
private static func convertToAnyHashableArray(data: [Any]) throws -> [AnyHashable] {
var result: [AnyHashable] = []
for value in data {
if let array = value as? [Any] {
Expand Down