|
unbound 0.1
|
Calls trust anchor unit tests. More...
#include "config.h"#include "util/log.h"#include "util/data/dname.h"#include "testcode/unitmain.h"#include "validator/val_anchor.h"#include "sldns/sbuffer.h"#include "sldns/rrdef.h"Functions | |
| static void | test_anchor_empty (struct val_anchors *a) |
| test empty set | |
| static void | test_anchor_one (sldns_buffer *buff, struct val_anchors *a) |
| test set of one anchor | |
| static void | test_anchors (sldns_buffer *buff, struct val_anchors *a) |
| test with several anchors | |
| void | anchors_test (void) |
| unit test trust anchor storage functions | |
Calls trust anchor unit tests.
Exits with code 1 on a failure.
|
static |
test empty set
References anchors_lookup(), LDNS_RR_CLASS_IN, test_anchor_empty(), and unit_assert.
Referenced by anchors_test(), and test_anchor_empty().
|
static |
test set of one anchor
References anchor_store_str(), anchors_lookup(), LDNS_RR_CLASS_IN, trust_anchor::lock, test_anchor_one(), and unit_assert.
Referenced by anchors_test(), and test_anchor_one().
|
static |
test with several anchors
References anchor_store_str(), anchors_lookup(), LDNS_RR_CLASS_IN, trust_anchor::lock, trust_anchor::name, query_dname_compare(), test_anchors(), and unit_assert.
Referenced by anchors_test(), and test_anchors().
| void anchors_test | ( | void | ) |
unit test trust anchor storage functions
References anchors_create(), anchors_delete(), anchors_test(), sldns_buffer_flip(), sldns_buffer_free(), sldns_buffer_new(), test_anchor_empty(), test_anchor_one(), test_anchors(), unit_assert, and unit_show_feature().
Referenced by anchors_test(), and main().