GCC Code Coverage Report
Directory: ../src/ Exec Total Coverage
File: /home/node-core-coverage/node-core-coverage/workdir/node/out/../src/pipe_wrap.h Lines: 1 2 50.0 %
Date: 2017-01-02 Branches: 0 0 0.0 %

Line Branch Exec Source
1
#ifndef SRC_PIPE_WRAP_H_
2
#define SRC_PIPE_WRAP_H_
3
4
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
5
6
#include "async-wrap.h"
7
#include "connection_wrap.h"
8
#include "env.h"
9
10
namespace node {
11
12
2992
class PipeWrap : public ConnectionWrap<PipeWrap, uv_pipe_t> {
13
 public:
14
  static v8::Local<v8::Object> Instantiate(Environment* env, AsyncWrap* parent);
15
  static void Initialize(v8::Local<v8::Object> target,
16
                         v8::Local<v8::Value> unused,
17
                         v8::Local<v8::Context> context);
18
19
  size_t self_size() const override { return sizeof(*this); }
20
21
 private:
22
  PipeWrap(Environment* env,
23
           v8::Local<v8::Object> object,
24
           bool ipc,
25
           AsyncWrap* parent);
26
27
  static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
28
  static void Bind(const v8::FunctionCallbackInfo<v8::Value>& args);
29
  static void Listen(const v8::FunctionCallbackInfo<v8::Value>& args);
30
  static void Connect(const v8::FunctionCallbackInfo<v8::Value>& args);
31
  static void Open(const v8::FunctionCallbackInfo<v8::Value>& args);
32
33
#ifdef _WIN32
34
  static void SetPendingInstances(
35
      const v8::FunctionCallbackInfo<v8::Value>& args);
36
#endif
37
};
38
39
40
}  // namespace node
41
42
#endif  // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
43
44
#endif  // SRC_PIPE_WRAP_H_