LCOV - code coverage report
Current view: top level - matchscore/utils - db.clj Coverage Total Hit
Test: lcov.info Lines: 100.0 % 16 16
Test Date: 2026-11-23 18:11:10 Functions: - 0 0

            Line data    Source code
       1            4 : (ns matchscore.utils.db)
       2              : 
       3              : 
       4            4 : (defn cast-uuid-filter
       5              :  "Wraps string values in a typed filter map with [:cast v :uuid].
       6              :    Handles :in filters by casting each element individually.
       7              :    Leaves nil values as nil so typed-filter->specs can skip them."
       8              :  [filter-map]
       9           12 :  (when filter-map
      10            8 :    (update-vals
      11            4 :     filter-map
      12            4 :     (fn [v]
      13           28 :      (cond (nil? v)        nil
      14           12 :            (sequential? v) (mapv #(vector :cast % :uuid) v)
      15           16 :            :else           [:cast v :uuid])))))
      16              : 
      17              : 
      18            4 : (defn unqualify-keys
      19              :  "Strips namespace qualifiers from all top-level keys.
      20              :    {:users/first-name \"John\"} => {:first-name \"John\"}"
      21              :  [m]
      22           12 :  (when m
      23            8 :    (reduce-kv
      24            4 :     (fn [acc k v]
      25           36 :      (assoc acc (keyword (name k)) v))
      26            4 :     {}
      27            4 :     m)))
        

Generated by: LCOV version 2.0-1