File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 427
427
(defn supports-table-view-mode?
428
428
" Return whether the inspected object can be rendered in :table view-mode."
429
429
[{:keys [chunk value] :as _inspector}]
430
- (let [val (or chunk value)]
431
- (and (#{:list :array } (object-type val ))
432
- (#{:list :array :map } (object-type (first val ))))))
430
+ (let [chunk (or chunk value)]
431
+ (and (#{:list :array } (object-type value ))
432
+ (#{:list :array :map } (object-type (first chunk ))))))
433
433
434
434
(defn- render-chunk-as-table [inspector chunk idx-starts-from]
435
435
(let [m-i map-indexed
Original file line number Diff line number Diff line change 1566
1566
" | " [:value " 7" pos?] " | " [:value " 7" pos?] " | " [:value " 7" pos?] " | " [:newline ]
1567
1567
" | " [:value " 8" pos?] " | " [:value " 8" pos?] " | " [:value " 8" pos?] " | " [:newline ]
1568
1568
[:newline ]]
1569
- (section " Contents" rendered)))))
1569
+ (section " Contents" rendered))))
1570
+
1571
+ (testing " map is not reported as table-viewable when paged"
1572
+ (is (not (-> (zipmap (range 100 ) (range ))
1573
+ (inspect/start )
1574
+ (set-page-size 30 )
1575
+ (inspect/supports-table-view-mode? ))))))
1570
1576
1571
1577
(deftest pretty-print-map-test
1572
1578
(testing " in :pretty view-mode are pretty printed"
You can’t perform that action at this time.
0 commit comments