rdatasetstats_test.c File Reference

#include <config.h>
#include <atf-c.h>
#include <unistd.h>
#include <dns/stats.h>
#include "dnstest.h"

Go to the source code of this file.

Functions

static void set_typestats (dns_stats_t *stats, dns_rdatatype_t type, isc_boolean_t stale)
static void set_nxdomainstats (dns_stats_t *stats, isc_boolean_t stale)
static void checkit1 (dns_rdatastatstype_t which, isc_uint64_t value, void *arg)
static void checkit2 (dns_rdatastatstype_t which, isc_uint64_t value, void *arg)
 ATF_TC (rdatasetstats)
 ATF_TC_HEAD (rdatasetstats, tc)
 ATF_TC_BODY (rdatasetstats, tc)
 ATF_TP_ADD_TCS (tp)


Detailed Description

Definition in file rdatasetstats_test.c.


Function Documentation

static void set_typestats ( dns_stats_t stats,
dns_rdatatype_t  type,
isc_boolean_t  stale 
) [static]

Definition at line 35 of file rdatasetstats_test.c.

References dns_rdatasetstats_increment(), DNS_RDATASTATSTYPE_ATTR_NXRRSET, DNS_RDATASTATSTYPE_ATTR_STALE, and DNS_RDATASTATSTYPE_VALUE.

Referenced by ATF_TC_BODY().

static void set_nxdomainstats ( dns_stats_t stats,
isc_boolean_t  stale 
) [static]

Definition at line 53 of file rdatasetstats_test.c.

References dns_rdatasetstats_increment(), DNS_RDATASTATSTYPE_ATTR_NXDOMAIN, DNS_RDATASTATSTYPE_ATTR_STALE, and DNS_RDATASTATSTYPE_VALUE.

Referenced by ATF_TC_BODY().

static void checkit1 ( dns_rdatastatstype_t  which,
isc_uint64_t  value,
void *  arg 
) [static]

Definition at line 64 of file rdatasetstats_test.c.

References DNS_RDATASTATSTYPE_ATTR, DNS_RDATASTATSTYPE_ATTR_NXDOMAIN, DNS_RDATASTATSTYPE_ATTR_NXRRSET, DNS_RDATASTATSTYPE_ATTR_OTHERTYPE, DNS_RDATASTATSTYPE_ATTR_STALE, DNS_RDATASTATSTYPE_BASE, and UNUSED.

Referenced by ATF_TC_BODY().

static void checkit2 ( dns_rdatastatstype_t  which,
isc_uint64_t  value,
void *  arg 
) [static]

Definition at line 91 of file rdatasetstats_test.c.

References DNS_RDATASTATSTYPE_ATTR, DNS_RDATASTATSTYPE_ATTR_NXDOMAIN, DNS_RDATASTATSTYPE_ATTR_NXRRSET, DNS_RDATASTATSTYPE_ATTR_OTHERTYPE, DNS_RDATASTATSTYPE_ATTR_STALE, DNS_RDATASTATSTYPE_BASE, and UNUSED.

Referenced by ATF_TC_BODY().

ATF_TC ( rdatasetstats   ) 

ATF_TC_HEAD ( rdatasetstats  ,
tc   
)

Definition at line 121 of file rdatasetstats_test.c.

ATF_TC_BODY ( rdatasetstats  ,
tc   
)

Definition at line 124 of file rdatasetstats_test.c.

References checkit1(), checkit2(), dns_rdatasetstats_create(), dns_rdatasetstats_dump(), dns_stats_detach(), dns_test_begin(), dns_test_end(), ISC_FALSE, ISC_R_SUCCESS, ISC_TRUE, mctx, set_nxdomainstats(), set_typestats(), and UNUSED.

ATF_TP_ADD_TCS ( tp   ) 

Definition at line 170 of file rdatasetstats_test.c.


Generated on Tue Apr 28 17:41:13 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha