File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 3
3
## master (unreleased)
4
4
5
5
- [ #353 ] ( https://github.com/clojure-emacs/orchard/pull/353 ) : Stacktrace: flag Clojure functions as duplicate.
6
+ - [ #354 ] ( https://github.com/clojure-emacs/orchard/pull/354 ) : Inspector: add support for printing compact qualified keywords.
6
7
7
8
## 0.36.0 (2025-06-29)
8
9
Original file line number Diff line number Diff line change 1134
1134
1135
1135
(defn inspect-render
1136
1136
([{:keys [max-atom-length max-value-length max-coll-size max-nested-depth value
1137
- pretty-print only-diff]
1137
+ pretty-print only-diff pov-ns ]
1138
1138
:as inspector}]
1139
1139
(binding [print/*max-atom-length* max-atom-length
1140
1140
print/*max-total-length* max-value-length
1141
1141
print/*coll-show-only-diff* (boolean only-diff)
1142
+ print/*pov-ns* (some-> pov-ns find-ns)
1142
1143
*print-length* max-coll-size
1143
1144
*print-level* (cond-> max-nested-depth
1144
1145
; ; In pretty mode a higher *print-level*
Original file line number Diff line number Diff line change 1777
1777
render
1778
1778
contents-section))))
1779
1779
1780
+ (deftest compact-keywords-test
1781
+ (testing " when :pov-ns is passed, use it to compact qualified keywords"
1782
+ (is+ [" --- Contents:" [:newline ]
1783
+ " " [:value " ::foo" pos?] " = " [:value " 1" pos?] [:newline ]
1784
+ " " [:value " ::str/bar" pos?] " = " [:value " 2" pos?] [:newline ]
1785
+ " " [:value " ::walk/baz" pos?] " = " [:value " 3" pos?]]
1786
+ (-> {::foo 1
1787
+ ::str/bar 2
1788
+ :clojure.walk/baz 3 }
1789
+ (inspect {:pov-ns 'orchard.inspect-test})
1790
+ render contents-section))))
1791
+
1780
1792
(deftest tap-test
1781
1793
(testing " tap-current-value"
1782
1794
(let [proof (atom [])
You can’t perform that action at this time.
0 commit comments