LCOV - code coverage report
Current view: top level - matchscore/domain/class_template - 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.class-template.query
       2              :   (:require
       3              :    [matchscore.domain.class-template.repository.postgres :as class-template-postgres-repo]))
       4              : 
       5              : 
       6            4 : (defn get-class-template
       7              :  "Retrieves a class template by ID. Returns ClassTemplate map or nil."
       8              :  [repo id]
       9            4 :  (class-template-postgres-repo/find-by-id repo id))
      10              : 
      11              : 
      12            4 : (defn get-class-templates-by-template-id
      13              :  "Retrieves class templates by event template ID. Returns a vector of ClassTemplate maps."
      14              :  [repo template-id]
      15            4 :  (class-template-postgres-repo/find-by-template-id repo template-id))
      16              : 
      17              : 
      18            4 : (defn get-class-templates-by-template-ids
      19              :  "Retrieves class templates for multiple event template IDs in one batch query.
      20              :   Returns a vector of ClassTemplate maps."
      21              :  [repo template-ids]
      22            4 :  (class-template-postgres-repo/find-by-template-ids repo template-ids))
      23              : 
      24              : 
      25            4 : (defn search-class-templates
      26              :  "Search class templates by filters and pagination. Returns paginated result."
      27              :  [repo filters pagination]
      28           10 :  (class-template-postgres-repo/search repo filters pagination))
        

Generated by: LCOV version 2.0-1