-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Simplify GraphQL::Backtrace #5217
Conversation
lib/graphql/backtrace/table.rb
Outdated
end | ||
end | ||
|
||
if last_part |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instance method rows missing tests for lines 81, 92, 93, 81, 81, 91 (coverage: 0.907)
response_list | ||
rescue NoMethodError => err | ||
# Ruby 2.2 doesn't have NoMethodError#receiver, can't check that one in this case. (It's been EOL since 2017.) | ||
if err.name == :each && (err.respond_to?(:receiver) ? err.receiver == value : true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instance method continue_field missing tests for lines 587, 588, 597, 598, 658, 666, 678, 685, 684, 586, 658, 658 (coverage: 0.8649)
This could be simplified by adding some info to the existing runtime structures. Then I could scrap a lot of code and simplify the
trace
module setup, too.TODO:
GraphQLResult
would have shown up in higher memory usage but apparently not. (All the same Ruby objects, but new references to them...)