GCC Code Coverage Report
Directory: ../ Exec Total Coverage
File: /home/iojs/build/workspace/node-test-commit-linux-coverage/nodes/benchmark/out/../src/node_debug_options.h Lines: 11 12 91.7 %
Date: 2017-12-18 Branches: 9 10 90.0 %

Line Branch Exec Source
1
#ifndef SRC_NODE_DEBUG_OPTIONS_H_
2
#define SRC_NODE_DEBUG_OPTIONS_H_
3
4
#include <string>
5
6
// Forward declaration to break recursive dependency chain with src/env.h.
7
namespace node {
8
9
16538
class DebugOptions {
10
 public:
11
  DebugOptions();
12
  bool ParseOption(const char* argv0, const std::string& option);
13
10044
  bool inspector_enabled() const { return inspector_enabled_; }
14
3352
  bool deprecated_invocation() const {
15
3
    return deprecated_debug_ &&
16

3353
      inspector_enabled_ &&
17
3352
      break_first_line_;
18
  }
19
3352
  bool invalid_invocation() const {
20

3352
    return deprecated_debug_ && !inspector_enabled_;
21
  }
22
6759
  bool wait_for_connect() const { return break_first_line_; }
23
3413
  std::string host_name() const { return host_name_; }
24
  void set_host_name(std::string host_name) { host_name_ = host_name; }
25
  int port() const;
26
1
  void set_port(int port) { port_ = port; }
27
28
 private:
29
  bool inspector_enabled_;
30
  bool deprecated_debug_;
31
  bool break_first_line_;
32
  std::string host_name_;
33
  int port_;
34
};
35
36
}  // namespace node
37
38
#endif  // SRC_NODE_DEBUG_OPTIONS_H_