Web Wispers 1.2.2 C++ Unit Test Coverage
Current view: top level - ssrc/wispers/lua - LoadConfig.cc (source / functions) Hit Total Coverage
Test: Web Wispers 1.2.2 C++ Unit Tests Lines: 5 5 100.0 %
Date: 2012-04-09 Functions: 4 5 80.0 %
Branches: 2 4 50.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Copyright 2006-2009 Savarese Software Research Corporation
       3                 :            :  *
       4                 :            :  * Licensed under the Apache License, Version 2.0 (the "License");
       5                 :            :  * you may not use this file except in compliance with the License.
       6                 :            :  * You may obtain a copy of the License at
       7                 :            :  *
       8                 :            :  *     https://www.savarese.com/software/ApacheLicense-2.0
       9                 :            :  *
      10                 :            :  * Unless required by applicable law or agreed to in writing, software
      11                 :            :  * distributed under the License is distributed on an "AS IS" BASIS,
      12                 :            :  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      13                 :            :  * See the License for the specific language governing permissions and
      14                 :            :  * limitations under the License.
      15                 :            :  */
      16                 :            : 
      17                 :            : #include <ssrc/wispers/lua/Properties.h>
      18                 :            : 
      19                 :            : extern "C" {
      20                 :            : 
      21                 :            :   NS_SSRC_WSPR_LUA::properties_ptr
      22                 :          1 :   ssrc_wispers_load_config(const std::string & filename) 
      23                 :            :     SSRC_DECL_THROW(NS_SSRC_WSPR_LUA::LuaCallError)
      24                 :            :   {
      25                 :          1 :     return NS_SSRC_WSPR_LUA::load_properties(filename);
      26                 :            :   }
      27                 :            : 
      28                 :            :   NS_SSRC_WSPR_LUA::properties_ptr
      29                 :          1 :   ssrc_wispers_load_string_config(const std::string & code_str) 
      30                 :            :     SSRC_DECL_THROW(NS_SSRC_WSPR_LUA::LuaCallError)
      31                 :            :   {
      32                 :          1 :     return NS_SSRC_WSPR_LUA::load_string_properties(code_str);
      33                 :            :   }
      34                 :            : 
      35   [ +  -  +  - ]:          6 : }