Back

inspect-tree (clj)

(source)

function

(inspect-tree data)
creates a graphical (Swing) inspector on the supplied hierarchical data

Examples

clojure/core.typed
(deftest atom?-test
  (is-tc-e #(atom? "abc") [-> Boolean]
           :requires [[clojure.inspector :refer [atom?]]])
  (is-tc-err #(atom? "abc") [-> String]
             :requires [[clojure.inspector :refer [atom?]]]))

(deftest inspect-tree-test
  (is-tc-e #(inspect-tree "abc") [-> javax.swing.JFrame]
           :requires [[clojure.inspector :refer [inspect-tree]]])
  (is-tc-err #(inspect-tree "abc") [-> String]
             :requires [[clojure.inspector :refer [inspect-tree]]]))
typedclojure/typedclojure
(deftest atom?-test
  (is-tc-e #(atom? "abc") [-> Boolean]
           :requires [[clojure.inspector :refer [atom?]]])
  (is-tc-err #(atom? "abc") [-> String]
             :requires [[clojure.inspector :refer [atom?]]]))

(deftest inspect-tree-test
  (is-tc-e #(inspect-tree "abc") [-> javax.swing.JFrame]
           :requires [[clojure.inspector :refer [inspect-tree]]])
  (is-tc-err #(inspect-tree "abc") [-> String]
             :requires [[clojure.inspector :refer [inspect-tree]]]))