GCC Code Coverage Report
Directory: ../ Exec Total Coverage
File: /home/iojs/build/workspace/node-test-commit-linux-coverage-daily/nodes/benchmark/out/../src/diagnosticfilename-inl.h Lines: 10 10 100.0 %
Date: 2020-08-07 22:13:19 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
23
inline DiagnosticFilename::DiagnosticFilename(
12
    Environment* env,
13
    const char* prefix,
14
23
    const char* ext) :
15
23
  filename_(MakeFilename(env->thread_id(), prefix, ext)) {
16
23
}
17
18
8
inline DiagnosticFilename::DiagnosticFilename(
19
    uint64_t thread_id,
20
    const char* prefix,
21
8
    const char* ext) :
22
8
  filename_(MakeFilename(thread_id, prefix, ext)) {
23
8
}
24
25
34
inline const char* DiagnosticFilename::operator*() const {
26
34
  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_