Coverage Report

Created: 2023-11-12 09:30

/proc/self/cwd/source/server/config_validation/dispatcher.h
Line
Count
Source (jump to first uncovered line)
1
#pragma once
2
3
#include "envoy/event/dispatcher.h"
4
5
#include "source/common/event/dispatcher_impl.h"
6
7
#include "dns.h"
8
9
namespace Envoy {
10
namespace Event {
11
12
/**
13
 * Config-validation-only implementation of Event::Dispatcher. This class delegates all calls to
14
 * Event::DispatcherImpl, except for the methods involved with network events. Those methods are
15
 * disallowed at validation time.
16
 */
17
class ValidationDispatcher : public DispatcherImpl {
18
public:
19
  ValidationDispatcher(const std::string& name, Api::Api& api, Event::TimeSystem& time_system)
20
6.68k
      : DispatcherImpl(name, api, time_system) {}
21
22
  Network::ClientConnectionPtr createClientConnection(
23
      Network::Address::InstanceConstSharedPtr, Network::Address::InstanceConstSharedPtr,
24
      Network::TransportSocketPtr&&, const Network::ConnectionSocket::OptionsSharedPtr& options,
25
      const Network::TransportSocketOptionsConstSharedPtr& transport_options) override;
26
  Network::ListenerPtr createListener(Network::SocketSharedPtr&&, Network::TcpListenerCallbacks&,
27
                                      Runtime::Loader&, const Network::ListenerConfig&,
28
0
                                      Server::ThreadLocalOverloadStateOptRef) override {
29
0
    return nullptr;
30
0
  }
31
};
32
33
} // namespace Event
34
} // namespace Envoy