Conversation
Codecov Report
@@ Coverage Diff @@
## master #1713 +/- ##
==========================================
+ Coverage 98.42% 98.44% +0.02%
==========================================
Files 139 140 +1
Lines 7944 7990 +46
==========================================
+ Hits 7819 7866 +47
+ Misses 125 124 -1
Continue to review full report at Codecov.
|
5295794 to
c8602e6
Compare
|
This PR looks good as-is but I was wondering if it was possible to avoid the explicit One idea I had to do that would be to append something like this to unless Sentry.initialized?
klass_methods = Sentry.methods(false)
Sentry.singleton_class.prepend(Module.new do
klass_methods.each do |method_name|
define_method(method_name) do
nil
end
end
end)
endThat way it'd automatically cover future changes too. |
|
@lewispb Yeah I've thought about that but I didn't think it's a good idea because:
|
|
@st0012 those are all good points 👍 thanks for explaining your thinking here. |
|
@lewispb np, thanks for the advice too. I sincerely appreciate that you check my code and provide suggestions from time to time! |
Closes #1706