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 10
10
(:require-macros [gen.dynamic.trace]))
11
11
#? (:clj
12
12
(:import
13
- (clojure.lang Associative IFn IObj IMapIterable Seqable ))))
13
+ (clojure.lang Associative IFn IObj IMapIterable))))
14
14
15
15
(defn no-op
16
16
([gf args]
156
156
(valIterator [this]
157
157
(.iterator ^Iterable (vals (trace/choices this))))
158
158
159
- java.lang. Iterable
159
+ Iterable
160
160
(iterator [this]
161
- (.iterator
162
- (let [^Seqable choice-map (trace/choices this)]
163
- ^Iterable (.seq choice-map))))]))
161
+ (.iterator ^Iterable (trace/choices this)))]))
164
162
165
163
(defn ^:no-doc = [^Trace this that]
166
164
(and (instance? Trace that)
Original file line number Diff line number Diff line change 44
44
(is (= :x (trace :addr )))))
45
45
46
46
(deftest keys
47
+ (is (= {} (into {} (dynamic.trace/trace (gen []) [])))
48
+ " iterator works on an empty trace" )
49
+
47
50
(is (= #{:addr }
48
51
(-> (dynamic.trace/trace (gen []) [])
49
52
(dynamic.trace/assoc-subtrace :addr (choice-trace :x ))
You can’t perform that action at this time.
0 commit comments