LCOV - code coverage report
Current view: top level - vnsw/agent/services - metadata_client.h (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 2 5 40.0 %
Date: 2026-11-09 02:10:49 Functions: 3 4 75.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
       3             :  * Copyright Contributors to the OpenSDN project
       4             :  */
       5             : 
       6             : #ifndef vnsw_agent_metadata_client_h_
       7             : #define vnsw_agent_metadata_client_h_
       8             : 
       9             : #include "http/client/http_client.h"
      10             : #include "services/metadata_client_session.h"
      11             : 
      12             : class MetadataClient : public HttpClient {
      13             : public:
      14           2 :     MetadataClient(EventManager *evm) : HttpClient(evm) {}
      15           4 :     virtual ~MetadataClient() {}
      16             : 
      17           0 :     virtual TcpSession *AllocSession(Socket *socket) {
      18             :         MetadataClientSession *session =
      19           0 :             new MetadataClientSession(this, socket);
      20           0 :         return session;
      21             :     }
      22             : 
      23             : private:
      24             :     DISALLOW_COPY_AND_ASSIGN(MetadataClient);
      25             : };
      26             : 
      27             : #endif // vnsw_agent_metadata_client_h_

Generated by: LCOV version 1.14