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: 8 8 100.0 %
Date: 2019-07-28 22:34:34 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
#include "env-inl.h"
8
9
namespace node {
10
11
19
inline DiagnosticFilename::DiagnosticFilename(
12
    Environment* env,
13
    const char* prefix,
14
    const char* ext) :
15
19
  filename_(MakeFilename(env->thread_id(), prefix, ext)) {
16
19
}
17
18
6
inline DiagnosticFilename::DiagnosticFilename(
19
    uint64_t thread_id,
20
    const char* prefix,
21
    const char* ext) :
22
6
  filename_(MakeFilename(thread_id, prefix, ext)) {
23
6
}
24
25
28
inline const char* DiagnosticFilename::operator*() const {
26
28
  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_