File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1010 (:require-macros [gen.dynamic.trace]))
1111 #? (:clj
1212 (:import
13- (clojure.lang Associative IFn IObj IMapIterable Seqable ))))
13+ (clojure.lang Associative IFn IObj IMapIterable))))
1414
1515(defn no-op
1616 ([gf args]
156156 (valIterator [this]
157157 (.iterator ^Iterable (vals (trace/choices this))))
158158
159- java.lang. Iterable
159+ Iterable
160160 (iterator [this]
161- (.iterator
162- (let [^Seqable choice-map (trace/choices this)]
163- ^Iterable (.seq choice-map))))]))
161+ (.iterator ^Iterable (trace/choices this)))]))
164162
165163(defn ^:no-doc = [^Trace this that]
166164 (and (instance? Trace that)
Original file line number Diff line number Diff line change 4444 (is (= :x (trace :addr )))))
4545
4646(deftest keys
47+ (is (= {} (into {} (dynamic.trace/trace (gen []) [])))
48+ " iterator works on an empty trace" )
49+
4750 (is (= #{:addr }
4851 (-> (dynamic.trace/trace (gen []) [])
4952 (dynamic.trace/assoc-subtrace :addr (choice-trace :x ))
You can’t perform that action at this time.
0 commit comments