Coverage Report

Created: 2026-10-23 06:28

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/trafficserver/include/proxy/http2/Http2CommonSessionInternal.h
Line
Count
Source
1
/** @file
2
3
  Http2CommonSessionInternal.
4
5
  @section license License
6
7
  Licensed to the Apache Software Foundation (ASF) under one
8
  or more contributor license agreements.  See the NOTICE file
9
  distributed with this work for additional information
10
  regarding copyright ownership.  The ASF licenses this file
11
  to you under the Apache License, Version 2.0 (the
12
  "License"); you may not use this file except in compliance
13
  with the License.  You may obtain a copy of the License at
14
15
      http://www.apache.org/licenses/LICENSE-2.0
16
17
  Unless required by applicable law or agreed to in writing, software
18
  distributed under the License is distributed on an "AS IS" BASIS,
19
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
  See the License for the specific language governing permissions and
21
  limitations under the License.
22
 */
23
#include "proxy/http2/Http2CommonSession.h"
24
25
namespace Http2CommonSessionInternalDbgCtl
26
{
27
inline DbgCtl &
28
http2_cs()
29
0
{
30
0
  static DbgCtl dc{"http2_cs"};
31
0
  return dc;
32
0
}
33
34
} // end namespace Http2CommonSessionInternalDbgCtl
35
36
#define REMEMBER(e, r)                          \
37
0
  {                                             \
38
0
    this->remember(MakeSourceLocation(), e, r); \
39
0
  }
40
41
#define STATE_ENTER(state_name, event)                                                                                       \
42
  do {                                                                                                                       \
43
    REMEMBER(event, this->recursion)                                                                                         \
44
    SsnDbg(this, Http2CommonSessionInternalDbgCtl::http2_cs(), "[%" PRId64 "] [%s, %s]", this->connection_id(), #state_name, \
45
           HttpDebugNames::get_event_name(event));                                                                           \
46
  } while (0)
47
48
#define Http2SsnDebug(fmt, ...) \
49
0
  SsnDbg(this, Http2CommonSessionInternalDbgCtl::http2_cs(), "[%" PRId64 "] " fmt, this->connection_id(), ##__VA_ARGS__)
50
51
#define HTTP2_SET_SESSION_HANDLER(handler) \
52
0
  do {                                     \
53
0
    REMEMBER(NO_EVENT, this->recursion);   \
54
0
    this->session_handler = (handler);     \
55
0
  } while (0)