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

            Line data    Source code
       1            4 : (ns matchscore.domain.template-participant.query
       2              :   (:require
       3              :    [matchscore.domain.template-participant.repository.postgres
       4              :     :as
       5              :     template-participant-postgres-repo]))
       6              : 
       7              : 
       8            4 : (defn get-template-participant
       9              :  "Retrieves an event template participant by composite key (template-id, participant-id).
      10              :    Returns EventTemplateParticipant map or nil."
      11              :  [repo template-id participant-id]
      12           10 :  (template-participant-postgres-repo/find-by-id repo template-id participant-id))
      13              : 
      14              : 
      15            4 : (defn get-participants-by-template-id
      16              :  "Retrieves all participants for a given event template, ordered by registered_at asc.
      17              :    Returns a vector of EventTemplateParticipant maps."
      18              :  [repo template-id]
      19            8 :  (template-participant-postgres-repo/find-by-template-id repo template-id))
      20              : 
      21              : 
      22            4 : (defn get-participants-by-template-ids
      23              :  "Retrieves all participants for multiple event templates in one batch query.
      24              :    Returns a vector of EventTemplateParticipant maps."
      25              :  [repo template-ids]
      26            4 :  (template-participant-postgres-repo/find-by-template-ids repo template-ids))
      27              : 
      28              : 
      29            4 : (defn get-user-participants-by-template-ids
      30              :  "Retrieves a user's participants across multiple event templates in one batch query.
      31              :    Returns a vector of EventTemplateParticipant maps."
      32              :  [repo template-ids user-id]
      33           10 :  (template-participant-postgres-repo/find-by-template-ids-and-user-id repo template-ids user-id))
        

Generated by: LCOV version 2.0-1