\hypertarget{keytest_8c}{}\doxysection{keytest.\+c File Reference}
\label{keytest_8c}\index{keytest.c@{keytest.c}}


Methods for making tests.  


{\ttfamily \#include \char`\"{}kdb.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}kdbinternal.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}kdbprivate.\+h\char`\"{}}\newline
Include dependency graph for keytest.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{keytest_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{group__keytest_gaf247df0de7aca04b32ef80e39ef12950}{key\+Need\+Sync}} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Test if a key needs to be synced to backend storage. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__keytest_ga03332b5d97c76a4fd2640aca4762b8df}{key\+Is\+Below}} (const Key $\ast$key, const Key $\ast$check)
\begin{DoxyCompactList}\small\item\em Check if the Key {\ttfamily check} is below the Key {\ttfamily key} or not. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{keytest_8c_a6250a0bad75aa9abb20a98e69ad2d299}{key\+Is\+Below\+Or\+Same}} (const Key $\ast$key, const Key $\ast$check)
\begin{DoxyCompactList}\small\item\em Check if a key is below or same. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__keytest_ga0150fb549225d8789e7297b919965e72}{key\+Is\+Directly\+Below}} (const Key $\ast$key, const Key $\ast$check)
\begin{DoxyCompactList}\small\item\em Check whether the Key {\ttfamily check} is directly below the Key {\ttfamily key}. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__keytest_ga9526b371087564e43e3dff8ad0dac949}{key\+Is\+Binary}} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Check if the value of a {\ttfamily key} is of binary type. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__keytest_gaea7670778abd07fee0fe8ac12a149190}{key\+Is\+String}} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Check if the value of {\ttfamily key} is of string type. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{keytest_8c_a2889591eff73100a8b7d98fc25724883}{key\+Compare\+Meta}} (const Key $\ast$k1, const Key $\ast$k2)
\begin{DoxyCompactList}\small\item\em Compares metadata of two keys. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Methods for making tests. 

\begin{DoxyCopyright}{Copyright}
BSD License (see LICENSE.\+md or \href{https://www.libelektra.org}{\texttt{ https\+://www.\+libelektra.\+org}}) 
\end{DoxyCopyright}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{keytest_8c_a2889591eff73100a8b7d98fc25724883}\label{keytest_8c_a2889591eff73100a8b7d98fc25724883}} 
\index{keytest.c@{keytest.c}!keyCompareMeta@{keyCompareMeta}}
\index{keyCompareMeta@{keyCompareMeta}!keytest.c@{keytest.c}}
\doxysubsubsection{\texorpdfstring{keyCompareMeta()}{keyCompareMeta()}}
{\footnotesize\ttfamily int key\+Compare\+Meta (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{k1,  }\item[{const Key $\ast$}]{k2 }\end{DoxyParamCaption})}



Compares metadata of two keys. 


\begin{DoxyRetVals}{Return values}
{\em KEY\+\_\+\+META} & if there is a difference \\
\hline
{\em 0} & if metadata is identical \\
\hline
\end{DoxyRetVals}
\mbox{\Hypertarget{keytest_8c_a6250a0bad75aa9abb20a98e69ad2d299}\label{keytest_8c_a6250a0bad75aa9abb20a98e69ad2d299}} 
\index{keytest.c@{keytest.c}!keyIsBelowOrSame@{keyIsBelowOrSame}}
\index{keyIsBelowOrSame@{keyIsBelowOrSame}!keytest.c@{keytest.c}}
\doxysubsubsection{\texorpdfstring{keyIsBelowOrSame()}{keyIsBelowOrSame()}}
{\footnotesize\ttfamily int key\+Is\+Below\+Or\+Same (\begin{DoxyParamCaption}\item[{const Key $\ast$}]{key,  }\item[{const Key $\ast$}]{check }\end{DoxyParamCaption})}



Check if a key is below or same. 


\begin{DoxyParams}{Parameters}
{\em key} & the key object to work with \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__keytest_ga03332b5d97c76a4fd2640aca4762b8df}{key\+Is\+Below()}} 
\end{DoxySeeAlso}
