GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: diagnosticfilename-inl.h Lines: 10 10 100.0 %
Date: 2022-08-28 04:20:35 Branches: 0 0 - %

Line Branch Exec Source
1
#ifndef SRC_DIAGNOSTICFILENAME_INL_H_
2
#define SRC_DIAGNOSTICFILENAME_INL_H_
3
4
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
5
6
#include "node_internals.h"
7
namespace node {
8
9
class Environment;
10
11
24
inline DiagnosticFilename::DiagnosticFilename(
12
    Environment* env,
13
    const char* prefix,
14
24
    const char* ext) :
15
24
  filename_(MakeFilename(env->thread_id(), prefix, ext)) {
16
24
}
17
18
14
inline DiagnosticFilename::DiagnosticFilename(
19
    uint64_t thread_id,
20
    const char* prefix,
21
14
    const char* ext) :
22
14
  filename_(MakeFilename(thread_id, prefix, ext)) {
23
14
}
24
25
42
inline const char* DiagnosticFilename::operator*() const {
26
42
  return filename_.c_str();
27
}
28
29
}  // namespace node
30
31
#endif  // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
32
33
#endif  // SRC_DIAGNOSTICFILENAME_INL_H_