LCOV - code coverage report
Current view: top level - src - GenericClient.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 2 2 100.0 %
Date: 2025-11-04 01:34:46 Functions: 2 3 66.7 %

          Line data    Source code
       1             : #ifndef SOCIAL_NETWORK_MICROSERVICES_GENERICCLIENT_H
       2             : #define SOCIAL_NETWORK_MICROSERVICES_GENERICCLIENT_H
       3             : 
       4             : #include <string>
       5             : #include <chrono>
       6             : 
       7             : namespace social_network {
       8             : 
       9         468 : class GenericClient{
      10             :  public:
      11         462 :   virtual ~GenericClient() = default;
      12             :   virtual void Connect() = 0;
      13             :   virtual void Disconnect() = 0;
      14             :   virtual bool IsConnected() = 0;
      15             : 
      16             :   long _connect_timestamp;
      17             :   long _keepalive_ms;
      18             : 
      19             :  protected:
      20             :   std::string _addr;
      21             :   int _port;
      22             : };
      23             : 
      24             : } // namespace social_network
      25             : 
      26             : #endif //SOCIAL_NETWORK_MICROSERVICES_GENERICCLIENT_H

Generated by: LCOV version 1.12