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


Methods for making tests.  


{\ttfamily \#include \char`\"{}kdb.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}kdbinternal.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}kdbprivate.\+h\char`\"{}}\\*
Include dependency graph for keytest.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{keytest_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \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 \hyperlink{group__keytest_ga03332b5d97c76a4fd2640aca4762b8df}{key\+Is\+Below} (const Key $\ast$key, const Key $\ast$check)
\begin{DoxyCompactList}\small\item\em Check if the key check is below the key key or not. \end{DoxyCompactList}\item 
int \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 or not. \end{DoxyCompactList}\item 
int \hyperlink{group__keytest_ga4f175aafd98948ce6c774f3bd92b72ca}{key\+Is\+Direct\+Below} (const Key $\ast$key, const Key $\ast$check)
\begin{DoxyCompactList}\small\item\em Check if the key check is direct below the key key or not. \end{DoxyCompactList}\item 
int \hyperlink{group__keytest_ga6bb0f95ac34ce9c42d61bb35a76139d0}{key\+Rel} (const Key $\ast$key, const Key $\ast$check)
\begin{DoxyCompactList}\small\item\em Information about the relation in the hierarchy between two keys. \end{DoxyCompactList}\item 
int \hyperlink{group__keytest_gaa25f699f592031c1a0abc1504d14e13e}{key\+Is\+Inactive} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Check whether a key is inactive. \end{DoxyCompactList}\item 
int \hyperlink{group__keytest_ga9526b371087564e43e3dff8ad0dac949}{key\+Is\+Binary} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Check if a key is binary type. \end{DoxyCompactList}\item 
int \hyperlink{group__keytest_gaea7670778abd07fee0fe8ac12a149190}{key\+Is\+String} (const Key $\ast$key)
\begin{DoxyCompactList}\small\item\em Check if a key is string type. \end{DoxyCompactList}\item 
int \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}


\subsection{Detailed Description}
Methods for making tests. 

\begin{DoxyCopyright}{Copyright}
B\+S\+D License (see doc/\+C\+O\+P\+Y\+I\+N\+G or \href{http://www.libelektra.org}{\tt http\+://www.\+libelektra.\+org}) 
\end{DoxyCopyright}


\subsection{Function Documentation}
\hypertarget{keytest_8c_a2889591eff73100a8b7d98fc25724883}{\index{keytest.\+c@{keytest.\+c}!key\+Compare\+Meta@{key\+Compare\+Meta}}
\index{key\+Compare\+Meta@{key\+Compare\+Meta}!keytest.\+c@{keytest.\+c}}
\subsubsection[{key\+Compare\+Meta}]{\setlength{\rightskip}{0pt plus 5cm}int key\+Compare\+Meta (
\begin{DoxyParamCaption}
\item[{const Key $\ast$}]{k1, }
\item[{const Key $\ast$}]{k2}
\end{DoxyParamCaption}
)}}\label{keytest_8c_a2889591eff73100a8b7d98fc25724883}


Compares metadata of two keys. 


\begin{DoxyRetVals}{Return values}
{\em K\+E\+Y\+\_\+\+M\+E\+T\+A} & if there is a difference \\
\hline
{\em 0} & if meta data is identical \\
\hline
\end{DoxyRetVals}
\hypertarget{keytest_8c_a6250a0bad75aa9abb20a98e69ad2d299}{\index{keytest.\+c@{keytest.\+c}!key\+Is\+Below\+Or\+Same@{key\+Is\+Below\+Or\+Same}}
\index{key\+Is\+Below\+Or\+Same@{key\+Is\+Below\+Or\+Same}!keytest.\+c@{keytest.\+c}}
\subsubsection[{key\+Is\+Below\+Or\+Same}]{\setlength{\rightskip}{0pt plus 5cm}int key\+Is\+Below\+Or\+Same (
\begin{DoxyParamCaption}
\item[{const Key $\ast$}]{key, }
\item[{const Key $\ast$}]{check}
\end{DoxyParamCaption}
)}}\label{keytest_8c_a6250a0bad75aa9abb20a98e69ad2d299}


Check if a key is below or same or not. 


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