LCOV - code coverage report
Current view: top level - adapter/http/controller - test_handler.go Coverage Total Hit
Test: coverage.lcov Lines: 100.0 % 8 8
Test Date: 2026-04-14 06:42:22 Functions: - 0 0

            Line data    Source code
       1              : // Package controller はエンドポイント処理を担当します。
       2              : package controller
       3              : 
       4              : import (
       5              :         "net/http"
       6              : 
       7              :         "github.com/gin-gonic/gin"
       8              : )
       9              : 
      10              : // TestHandler は疎通確認用のハンドラです。
      11              : type TestHandler struct{}
      12              : 
      13              : // NewTestHandler は TestHandler の新しいインスタンスを生成して返します。
      14              : // テストの HTTP リクエストを処理するためのハンドラを初期化します。
      15            2 : func NewTestHandler() *TestHandler {
      16            2 :         return &TestHandler{}
      17            2 : }
      18              : 
      19              : // Ping は サンプルメッセージを返します。
      20            1 : func (h TestHandler) Ping(c *gin.Context) {
      21            1 :         c.JSON(http.StatusOK, gin.H{
      22            1 :                 "message": "test pong",
      23            1 :         })
      24            1 : }
        

Generated by: LCOV version 2.3.1-1