LCOV - code coverage report
Current view: top level - matchscore/graphql - scalars.clj Coverage Total Hit
Test: lcov.info Lines: 92.9 % 14 13
Test Date: 2026-11-23 18:11:10 Functions: - 0 0

            Line data    Source code
       1            4 : (ns matchscore.graphql.scalars)
       2              : 
       3              : 
       4            4 : (defn- parse-decimal
       5              :   [value]
       6            6 :   (cond (nil? value) nil
       7            5 :         (instance? java.math.BigDecimal value) value
       8            0 :         :else (bigdec value)))
       9              : 
      10              : 
      11            4 : (defn- serialize-decimal
      12              :   [value]
      13           20 :   (some->
      14            1 :     value
      15            1 :     parse-decimal
      16              :     .stripTrailingZeros
      17              :     .toPlainString))
      18              : 
      19              : 
      20            4 : (defn scalar-map
      21              :  "Returns scalar parse/serialize functions for the GraphQL schema."
      22              :  []
      23           24 :  {:scalar/parse-json        identity
      24            4 :   :scalar/serialize-json    identity
      25            4 :   :scalar/parse-decimal     parse-decimal
      26            4 :   :scalar/serialize-decimal serialize-decimal})
        

Generated by: LCOV version 2.0-1