LCOV - code coverage report
Current view: top level - package/demo/api - get.hpp (source / functions) Hit Total Coverage
Test: wfc_demo-coverage.info Lines: 2 11 18.2 %
Date: 2019-08-13 Functions: 4 8 50.0 %

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include <string>
       4             : #include <memory>
       5             : #include <functional>
       6             : 
       7             : namespace demo{
       8             : 
       9             : namespace request
      10             : {
      11           2 :   struct get 
      12             :   {
      13             :     std::string key;
      14             :     typedef std::unique_ptr<get> ptr;
      15             : 
      16           0 :     static get create_schema() 
      17             :     {
      18           0 :       get sch;
      19           0 :       sch.key = "key1";
      20           0 :       return sch;
      21             :     }
      22             :   };
      23             : }
      24             : 
      25             : namespace response
      26             : {
      27           2 :   struct get 
      28             :   {
      29             :     std::string value;
      30             :     bool status = false;
      31             :     typedef std::unique_ptr<get> ptr;
      32             :     typedef std::function< void(ptr)> handler;
      33             : 
      34           0 :     static get create_schema() 
      35             :     {
      36           0 :       get sch;
      37           0 :       sch.value = "value1";
      38           0 :       sch.status = true;
      39           0 :       return sch;
      40             :     }
      41             : 
      42             :   };
      43             : }
      44             : 
      45             : }

Generated by: LCOV version 1.10