LCOV - code coverage report
Current view: top level - shared_model/validators - validators_common.cpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 2 3 66.7 %
Date: 2019-03-07 14:46:43 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : 
       6             : #include "validators/validators_common.hpp"
       7             : 
       8             : #include <regex>
       9             : 
      10             : namespace shared_model {
      11             :   namespace validation {
      12             : 
      13             :     bool validateHexString(const std::string &str) {
      14        5569 :       static const std::regex hex_regex{R"([0-9a-fA-F]*)"};
      15        5545 :       return std::regex_match(str, hex_regex);
      16           0 :     }
      17             : 
      18             :   }  // namespace validation
      19             : }  // namespace shared_model

Generated by: LCOV version 1.13