---
name: "testtool_backend.cpp"
section: "3elektra"
platform: "linux"
package: "elektra-doc"
version: "0.8.7-4"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/testtool_backend.cpp"
---

# testtool\_backend.cpp(3elektra)

Tests for the Backend class.

## NAME

testtool\_backend.cpp -

Tests for the Backend class.

## SYNOPSIS

`#include <backend.hpp>`\
 `#include <backends.hpp>`\
 `#include <iostream>`\
 `#include <string>`\
 `#include <kdb.hpp>`\
 `#include <gtest/gtest.h>`\

### Functions

void **outputGTest** (**kdb::KeySet** tocheck, std::string name)\
 *Easily allows to generate regression tests for keysets.*

## Detailed Description

Tests for the Backend class.

**Copyright:**

BSD License (see doc/COPYING or http://www.libelektra.org)

## Function Documentation

### void outputGTest (kdb::KeySettocheck, std::stringname)

Easily allows to generate regression tests for keysets.

**Parameters:**

*tocheck* the keyset to check (name + string) \
 *name* the name of the keyset

## Author

Generated automatically by Doxygen for Elektra from the source code.
