Lines Matching full:assert
9 #include <assert.h>
46 assert(oid != NULL); /* Actually just the container... */ in test_interface()
47 assert(libder_obj_type_simple(oid) == 0xa0); in test_interface()
50 assert(oid != NULL); /* Now *that*'s an OID. */ in test_interface()
51 assert(libder_obj_type_simple(oid) == BT_OID); in test_interface()
53 assert(datasz == sizeof(oid_secp112r1)); in test_interface()
54 assert(memcmp(oid_secp112r1, data, datasz) == 0); in test_interface()
57 assert(keystring != NULL); in test_interface()
58 assert(libder_obj_type_simple(keystring) == BT_OCTETSTRING); in test_interface()
61 assert(datasz == sizeof(privdata)); in test_interface()
62 assert(memcmp(privdata, data, datasz) == 0); in test_interface()
76 assert(root != NULL); in test_construction()
80 assert(obj != NULL); in test_construction()
81 assert(libder_obj_append(root, obj)); in test_construction()
85 assert(obj != NULL); in test_construction()
86 assert(libder_obj_append(root, obj)); in test_construction()
91 assert(oidp != NULL); in test_construction()
92 assert(libder_obj_append(root, oidp)); in test_construction()
96 assert(pubp != NULL); in test_construction()
97 assert(libder_obj_append(root, pubp)); in test_construction()
101 assert(obj != NULL); in test_construction()
102 assert(libder_obj_append(oidp, obj)); in test_construction()
106 assert(obj != NULL); in test_construction()
107 assert(libder_obj_append(pubp, obj)); in test_construction()
112 assert(out != NULL); in test_construction()
113 assert(outsz == bufsz); in test_construction()
115 assert(memcmp(out, buf, bufsz) == 0); in test_construction()
135 assert(fd >= 0); in main()
141 assert(error == 0); in main()
145 assert(buf != NULL); in main()
150 assert(readsz == bufsz); in main()
157 assert(root != NULL); in main()
158 assert(rootsz == bufsz); in main()
166 assert(out != NULL); in main()
167 assert(outsz == bufsz); in main()
169 assert(memcmp(buf, out, outsz) == 0); in main()