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

            Line data    Source code
       1            4 : (ns matchscore.domain.match-segment.query
       2              :   (:require
       3              :    [matchscore.domain.match-segment.repository.postgres :as postgres-repo]))
       4              : 
       5              : 
       6            4 : (defn get-match-segment
       7              :  "Retrieves a match segment by ID. Returns MatchSegment map or nil."
       8              :  [repo id]
       9            4 :  (postgres-repo/find-by-id repo id))
      10              : 
      11              : 
      12            4 : (defn get-match-segments-by-match
      13              :  "Retrieves all top-level segments for a match, ordered by order. Returns seq."
      14              :  [repo match-id]
      15            4 :  (postgres-repo/find-by-match-id repo match-id))
      16              : 
      17              : 
      18            4 : (defn get-match-segments-by-match-ids
      19              :  "Retrieves all top-level segments for multiple matches in one batch. Returns seq."
      20              :  [repo match-ids]
      21            8 :  (postgres-repo/find-by-match-ids repo match-ids))
      22              : 
      23              : 
      24            4 : (defn get-match-segments-by-bracket-match-ids
      25              :  "Retrieves all top-level segments for multiple bracket matches in one batch. Returns seq."
      26              :  [repo bracket-match-ids]
      27            4 :  (postgres-repo/find-by-bracket-match-ids repo bracket-match-ids))
      28              : 
      29              : 
      30            4 : (defn get-match-segments-by-parent
      31              :  "Retrieves child segments of a segment, ordered by order. Returns seq."
      32              :  [repo parent-id]
      33            4 :  (postgres-repo/find-by-parent-id repo parent-id))
      34              : 
      35              : 
      36            4 : (defn search-match-segments
      37              :  "Search match segments by filters and pagination. Returns paginated result."
      38              :  [repo filters pagination]
      39            5 :  (postgres-repo/search repo filters pagination))
        

Generated by: LCOV version 2.0-1