-
Notifications
You must be signed in to change notification settings - Fork 176
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
Fix instrument for a dot special form case #672
Conversation
d10b4d2
to
cc8d530
Compare
@@ -73,7 +73,12 @@ | |||
'#{new} (cons (first args) (instrument-coll (rest args))) | |||
'#{quote & var clojure.core/import*} args | |||
'#{.} (list* (first args) | |||
(second args) | |||
(let [s (second args)] |
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.
Might be a good idea to add some comments explaining this block of code.
@@ -138,6 +138,14 @@ | |||
'#{[(def foo "foo doc" (bp (bar) {:coor [3]} (bar))) []] | |||
[(bar) [3]]}))) | |||
|
|||
(deftest instrument-dot-test | |||
(is (= (t/breakpoint-tester '(. clojure.lang.Numbers add 1 x)) |
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.
Might be a good idea to wrap the tests in testing
blocks with some explanations of why those cases are different.
Thanks for tackling this! I've left a couple of tiny remarks, but overall your changes look great! |
Added some comments in code and tests. |
Thanks! |
Before submitting a PR make sure the following things have been done:
Fix for #671
Instrumentation for dot special forms of type
(. clojure.lang.Numers (add 1 x))
fails. There is no breakpoint set forx
.This PR fixes this so that the breakpoints are set inside the dot special form.