LCOV - code coverage report
Current view: top level - examples - kdbopen.c (source / functions) Hit Total Coverage
Test: coverage-filtered.info Lines: 0 13 0.0 %
Date: 2019-09-12 12:28:41 Functions: 0 3 0.0 %

          Line data    Source code
       1             : /**
       2             :  * @file
       3             :  *
       4             :  * @brief
       5             :  *
       6             :  * @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
       7             :  */
       8             : 
       9             : #include <kdb.h>
      10             : 
      11             : //! [open]
      12           0 : void thread1 (void)
      13             : {
      14           0 :         Key * parent = keyNew ("/app/part1", KEY_CASCADING_NAME, KEY_END);
      15           0 :         KDB * h = kdbOpen (parent);
      16             :         // fetch keys and work with them
      17           0 :         kdbClose (h, parent);
      18           0 : }
      19           0 : void thread2 (void)
      20             : {
      21           0 :         Key * parent = keyNew ("/app/part2", KEY_CASCADING_NAME, KEY_END);
      22           0 :         KDB * h = kdbOpen (parent);
      23             :         // fetch keys and work with them
      24           0 :         kdbClose (h, parent);
      25           0 : }
      26             : //! [open]
      27             : 
      28           0 : int main (void)
      29             : {
      30           0 :         thread1 ();
      31           0 :         thread2 ();
      32             : }

Generated by: LCOV version 1.13