GCC Code Coverage Report
Directory: ../ Exec Total Coverage
File: /home/node-core-coverage/node-core-coverage/workdir/node/out/../src/connection_wrap.h Lines: 2 2 100.0 %
Date: 2016-09-05 Branches: 0 0 0.0 %

Line Branch Exec Source
1
#ifndef SRC_CONNECTION_WRAP_H_
2
#define SRC_CONNECTION_WRAP_H_
3
4
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
5
6
#include "env.h"
7
#include "stream_wrap.h"
8
#include "v8.h"
9
10
namespace node {
11
12
template <typename WrapType, typename UVType>
13
class ConnectionWrap : public StreamWrap {
14
 public:
15
  UVType* UVHandle() {
16
1472
    return &handle_;
17
  }
18
19
  static void OnConnection(uv_stream_t* handle, int status);
20
21
 protected:
22
  ConnectionWrap(Environment* env,
23
                 v8::Local<v8::Object> object,
24
                 ProviderType provider,
25
                 AsyncWrap* parent);
26
  ~ConnectionWrap() {
27
14462
  }
28
29
  UVType handle_;
30
};
31
32
33
}  // namespace node
34
35
#endif  // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
36
37
#endif  // SRC_CONNECTION_WRAP_H_