LCOV - code coverage report
Current view: top level - zeroeq/detail - port.cpp (source / functions) Hit Total Coverage
Test: ZeroEQ Lines: 4 4 100.0 %
Date: 2017-12-01 01:44:57 Functions: 3 3 100.0 %

          Line data    Source code
       1             : 
       2             : /* Copyright (c) 2015, Human Brain Project
       3             :  *                     Juan Hernando <jhernando@fi.upm.es>
       4             :  */
       5             : 
       6             : #include "port.h"
       7             : 
       8             : namespace zeroeq
       9             : {
      10             : namespace detail
      11             : {
      12           3 : uint16_t getPort(const std::string& name)
      13             : {
      14           3 :     const uint128_t& md5 = make_uint128(name);
      15           3 :     return 1024 + (md5.low() % (65535 - 1024));
      16             : }
      17             : }
      18          24 : }

Generated by: LCOV version 1.11