GCC Code Coverage Report
Directory: ../ Exec Total Coverage
File: /home/iojs/build/workspace/node-test-commit-linux-coverage-daily/nodes/benchmark/out/../src/node_symbols.cc Lines: 5 5 100.0 %
Date: 2020-08-07 22:13:19 Branches: 2 4 50.0 %

Line Branch Exec Source
1
#include "env-inl.h"
2
#include "node_binding.h"
3
#include "util.h"
4
5
namespace node {
6
7
using v8::Context;
8
using v8::Local;
9
using v8::Object;
10
using v8::Value;
11
12
namespace symbols {
13
14
389
static void Initialize(Local<Object> target,
15
                       Local<Value> unused,
16
                       Local<Context> context,
17
                       void* priv) {
18
389
  Environment* env = Environment::GetCurrent(context);
19
#define V(PropertyName, StringValue)                                          \
20
  target->Set(env->context(),                                                 \
21
              env->PropertyName()->Description(),                             \
22
              env->PropertyName()).Check();
23
19061
  PER_ISOLATE_SYMBOL_PROPERTIES(V)
24
#undef V
25
389
}
26
27
}  // namespace symbols
28
}  // namespace node
29
30

17763
NODE_MODULE_CONTEXT_AWARE_INTERNAL(symbols, node::symbols::Initialize)