| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/lua_core/ |
| H A D | tst.lib_strings.lua | 63 assert(string.len("") == 0) 67 assert(#"" == 0) 68 assert(#"\0\0\0" == 3) 69 assert(#"1234567890" == 10) 72 assert(string.byte("a") == 97) 86 assert(string.char() == "") 124 assert(#x == 52) 159 assert(table.concat{} == "") 185 assert(a==6) 197 assert(#t == 0) [all …]
|
| H A D | tst.lib_base.lua | 37 assert(B == false) 39 assert(B == 30) 58 assert(not e) 138 assert(b+5 == b) 142 assert(5+b == 5) 147 assert(5-a == 5) 151 assert(a*a == a) 153 assert(a/0 == a) 157 assert(-a == a) 167 assert(#a == a) [all …]
|
| H A D | tst.lib_coroutine.lua | 36 assert(#t1 == #t2) 39 assert(t2[i] == v) 142 assert(co() == 20) 143 assert(co() == 30) 173 assert(x() == 3) 176 assert(a and b == 3) 198 assert(a == 5^4) 218 assert(C[1] == nil) 254 assert(a and b == 3) 268 assert(_G.f() == 11) [all …]
|
| H A D | tst.lib_table.lua | 66 assert(x == 1) 76 assert(x == 10 and y == nil) 80 assert(a==1 and x==nil) 82 assert(a==1 and x==nil) 93 assert(a == 20 and b == nil) 95 assert(a == nil and b == 20) 231 assert(table.remove(a) == 10) 232 assert(table.remove(a) == 20) 233 assert(table.remove(a) == -1) 245 assert(a[#a] == 40) [all …]
|
| /f-stack/freebsd/contrib/libsodium/test/default/ |
| H A D | pwhash_argon2id.c | 211 assert(out != NULL); in tv3() 214 assert(passwd != NULL); in tv3() 404 assert(crypto_pwhash_bytes_min() > 0U); in main() 407 assert(crypto_pwhash_saltbytes() > 0U); in main() 408 assert(crypto_pwhash_strbytes() > 1U); in main() 411 assert(crypto_pwhash_opslimit_min() > 0U); in main() 412 assert(crypto_pwhash_opslimit_max() > 0U); in main() 413 assert(crypto_pwhash_memlimit_min() > 0U); in main() 414 assert(crypto_pwhash_memlimit_max() > 0U); in main() 438 assert(crypto_pwhash_opslimit_moderate() == in main() [all …]
|
| H A D | secretstream.c | 67 assert(ret == 0); in main() 71 assert(ret == 0); in main() 76 assert(ret == 0); in main() 81 assert(ret == 0); in main() 86 assert(ret == 0); in main() 91 assert(ret == 0); in main() 92 assert(tag == 0); in main() 99 assert(ret == 0); in main() 100 assert(tag == 0); in main() 112 assert(ret == 0); in main() [all …]
|
| H A D | box.c | 56 assert(ret == 0); in main() 65 assert(ret == -1); in main() 70 assert(ret == 0); in main() 80 assert(ret == -1); in main() 82 assert(crypto_box_seedbytes() > 0U); in main() 83 assert(crypto_box_publickeybytes() > 0U); in main() 85 assert(crypto_box_beforenmbytes() > 0U); in main() 86 assert(crypto_box_noncebytes() > 0U); in main() 87 assert(crypto_box_zerobytes() > 0U); in main() 88 assert(crypto_box_boxzerobytes() > 0U); in main() [all …]
|
| H A D | pwhash_argon2i.c | 215 assert(out != NULL); in tv3() 218 assert(passwd != NULL); in tv3() 283 assert(str_out[crypto_pwhash_STRBYTES - 1U] == 0); in str_tests() 406 assert(crypto_pwhash_argon2i_bytes_min() > 0U); in main() 409 assert(crypto_pwhash_argon2i_saltbytes() > 0U); in main() 410 assert(crypto_pwhash_argon2i_strbytes() > 1U); in main() 413 assert(crypto_pwhash_argon2i_opslimit_min() > 0U); in main() 414 assert(crypto_pwhash_argon2i_opslimit_max() > 0U); in main() 415 assert(crypto_pwhash_argon2i_memlimit_min() > 0U); in main() 416 assert(crypto_pwhash_argon2i_memlimit_max() > 0U); in main() [all …]
|
| H A D | xchacha20.c | 129 assert(sodium_is_zero(out2, out_len)); in tv_stream_xchacha20() 131 assert(sodium_is_zero(out2, out_len)); in tv_stream_xchacha20() 133 assert(!sodium_is_zero(out2, out_len)); in tv_stream_xchacha20() 135 assert(sodium_is_zero(out, out_len)); in tv_stream_xchacha20() 153 assert(memcmp(out, out2 + 64, 64) == 0); in tv_stream_xchacha20() 169 assert(memcmp(out, out2, 192) == 0); in tv_stream_xchacha20() 245 assert(memcmp(out, out2, in tv_secretbox_xchacha20poly1305() 272 assert(memcmp(m, out2, m_len) == 0); in tv_secretbox_xchacha20poly1305() 282 assert(memcmp(out, out2, in tv_secretbox_xchacha20poly1305() 345 assert(memcmp(m2, m, m_len) == 0); in tv_box_xchacha20poly1305() [all …]
|
| H A D | secretbox.c | 63 assert(crypto_secretbox_keybytes() > 0U); in main() 64 assert(crypto_secretbox_noncebytes() > 0U); in main() 65 assert(crypto_secretbox_zerobytes() > 0U); in main() 66 assert(crypto_secretbox_boxzerobytes() > 0U); in main() 67 assert(crypto_secretbox_macbytes() > 0U); in main() 70 assert(crypto_secretbox_keybytes() == in main() 72 assert(crypto_secretbox_noncebytes() == in main() 74 assert(crypto_secretbox_zerobytes() == in main() 76 assert(crypto_secretbox_boxzerobytes() == in main() 78 assert(crypto_secretbox_macbytes() == in main() [all …]
|
| H A D | core_ed25519.c | 98 assert(crypto_core_ed25519_is_valid_point(p) == 1); in main() 101 assert(crypto_core_ed25519_is_valid_point(p) == 0); in main() 104 assert(crypto_core_ed25519_is_valid_point(p) == 0); in main() 107 assert(crypto_core_ed25519_is_valid_point(p) == 0); in main() 110 assert(crypto_core_ed25519_is_valid_point(p) == 1); in main() 120 assert(memcmp(p2, p, crypto_core_ed25519_BYTES) != 0); in main() 121 assert(memcmp(p3, p, crypto_core_ed25519_BYTES) == 0); in main() 124 assert(crypto_core_ed25519_add(p3, p2, p) == -1); in main() 127 assert(crypto_core_ed25519_add(p3, p, p3) == -1); in main() 131 assert(crypto_core_ed25519_sub(p3, p2, p) == -1); in main() [all …]
|
| H A D | generichash.c | 1370 assert(crypto_generichash(NULL, 0, in main() 1380 assert(crypto_generichash_bytes_min() > 0U); in main() 1381 assert(crypto_generichash_bytes_max() > 0U); in main() 1382 assert(crypto_generichash_bytes() > 0U); in main() 1385 assert(crypto_generichash_keybytes_min() > 0U); in main() 1387 assert(crypto_generichash_keybytes() > 0U); in main() 1391 assert(crypto_generichash_bytes_min() in main() 1393 assert(crypto_generichash_bytes_max() in main() 1396 assert(crypto_generichash_keybytes_min() in main() 1398 assert(crypto_generichash_keybytes_max() in main() [all …]
|
| H A D | codecs.c | 133 assert(*b64_end == 0); in main() 142 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 144 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 148 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 153 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 155 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 206 assert(sizeof buf1 >= 100); in main() 216 assert(b64 != NULL); in main() 217 assert(sodium_base642bin(bin, bin_len + 10, b64, b64_len, in main() 220 assert(b64_end == &b64[b64_len - 1]); in main() [all …]
|
| H A D | kdf.c | 26 assert(ret == 0); in tv_kdf() 49 assert(crypto_kdf_BYTES_MAX > 0); in tv_kdf() 50 assert(crypto_kdf_BYTES_MIN <= crypto_kdf_BYTES_MAX); in tv_kdf() 51 assert(crypto_kdf_bytes_min() == crypto_kdf_BYTES_MIN); in tv_kdf() 52 assert(crypto_kdf_bytes_max() == crypto_kdf_BYTES_MAX); in tv_kdf() 53 assert(crypto_kdf_CONTEXTBYTES > 0); in tv_kdf() 54 assert(crypto_kdf_contextbytes() == crypto_kdf_CONTEXTBYTES); in tv_kdf() 55 assert(crypto_kdf_KEYBYTES >= 16); in tv_kdf() 56 assert(crypto_kdf_keybytes() == crypto_kdf_KEYBYTES); in tv_kdf() 57 assert(crypto_kdf_bytes_min() == crypto_kdf_blake2b_bytes_min()); in tv_kdf() [all …]
|
| H A D | pwhash_scrypt.c | 283 assert(out != NULL); in tv3() 286 assert(passwd != NULL); in tv3() 358 assert(crypto_pwhash_scryptsalsa208sha256_str_needs_rehash in str_tests() 360 assert(crypto_pwhash_str_needs_rehash(str_out, 0, 0) == -1); in str_tests() 362 assert(crypto_pwhash_scryptsalsa208sha256_str_needs_rehash in str_tests() 378 assert(crypto_pwhash_scryptsalsa208sha256_bytes_min() > 0U); in main() 379 assert(crypto_pwhash_scryptsalsa208sha256_bytes_max() > in main() 381 assert(crypto_pwhash_scryptsalsa208sha256_passwd_max() > in main() 383 assert(crypto_pwhash_scryptsalsa208sha256_saltbytes() > 0U); in main() 384 assert(crypto_pwhash_scryptsalsa208sha256_strbytes() > 1U); in main() [all …]
|
| H A D | auth.c | 25 assert(crypto_auth_hmacsha512_statebytes() == in main() 68 assert(crypto_auth_bytes() > 0U); in main() 69 assert(crypto_auth_keybytes() > 0U); in main() 70 assert(strcmp(crypto_auth_primitive(), "hmacsha512256") == 0); in main() 71 assert(crypto_auth_hmacsha256_bytes() > 0U); in main() 72 assert(crypto_auth_hmacsha256_keybytes() > 0U); in main() 73 assert(crypto_auth_hmacsha512_bytes() > 0U); in main() 74 assert(crypto_auth_hmacsha512_keybytes() > 0U); in main() 77 assert(crypto_auth_hmacsha512256_statebytes() >= in main() 79 assert(crypto_auth_hmacsha256_statebytes() == in main() [all …]
|
| /f-stack/app/redis-5.0.5/tests/unit/ |
| H A D | dump.tcl | 58 assert {$freq == 100} 121 assert {$ret eq {OK}} 141 assert {$ret eq {OK}} 163 assert {$ret eq {OK}} 182 assert {$ret eq {OK}} 207 assert {$ret eq {OK}} 228 assert {$ret eq {OK}} 267 assert {$ret eq {OK}} 293 assert {$ret eq {NOKEY}} 298 assert {$ret eq {OK}} [all …]
|
| /f-stack/freebsd/kern/ |
| H A D | subr_capability.c | 189 assert(CAPRVER(right) == 0); in cap_rights_vset() 191 assert(i >= 0); in cap_rights_vset() 192 assert(i < n); in cap_rights_vset() 214 assert(CAPRVER(right) == 0); in cap_rights_vclear() 216 assert(i >= 0); in cap_rights_vclear() 217 assert(i < n); in cap_rights_vclear() 239 assert(CAPRVER(right) == 0); in cap_rights_is_vset() 241 assert(i >= 0); in cap_rights_is_vset() 242 assert(i < n); in cap_rights_is_vset() 348 assert(cap_rights_is_valid(src)); in cap_rights_merge() [all …]
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/ |
| H A D | tst.get_userquota.ksh | 46 assert(setpoint == "$fs") 49 assert(ans == 0) 50 assert(setpoint == "$fs") 54 assert(setpoint == "$fs") 57 assert(ans == 0) 64 assert(ans == nil) 65 assert(setpoint == nil) 68 assert(ans == 0) 72 assert(ans == nil) 73 assert(setpoint == nil) [all …]
|
| H A D | tst.get_count_and_limit.ksh | 45 assert(ans == -1) 49 assert(ans == nil) 50 assert(src == nil) 55 assert(ans == -1) 59 assert(ans == nil) 60 assert(src == nil) 67 assert(ans == 10) 71 assert(ans == 1) 72 assert(src == nil) 81 assert(ans == 8) [all …]
|
| /f-stack/freebsd/contrib/zlib/test/ |
| H A D | infcover.c | 163 assert(zone != NULL); in mem_setup() 517 assert(in != NULL); in try() 522 assert(out != NULL); in try() 524 assert(win != NULL); in try() 526 assert(prefix != NULL); in try() 535 assert(ret == Z_OK); in try() 547 assert(ret == Z_DATA_ERROR); in try() 548 assert(strcmp(id, strm.msg) == 0); in try() 559 assert(ret == Z_OK); in try() 563 assert(ret != Z_STREAM_ERROR); in try() [all …]
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | util.c | 723 assert(v == -1); in test_string2ll() 727 assert(v == 0); in test_string2ll() 731 assert(v == 1); in test_string2ll() 735 assert(v == 99); in test_string2ll() 770 assert(v == -1); in test_string2l() 774 assert(v == 0); in test_string2l() 778 assert(v == 1); in test_string2l() 782 assert(v == 99); in test_string2l() 812 assert(sz == 1); in test_ll2string() 817 assert(sz == 2); in test_ll2string() [all …]
|
| H A D | intset.c | 340 assert(i16[i] < i16[i+1]); in checkConsistency() 343 assert(i32[i] < i32[i+1]); in checkConsistency() 346 assert(i64[i] < i64[i+1]); in checkConsistency() 404 assert(intsetFind(is,32)); in intsetTest() 405 assert(intsetFind(is,65535)); in intsetTest() 413 assert(intsetFind(is,32)); in intsetTest() 414 assert(intsetFind(is,-65535)); in intsetTest() 425 assert(intsetFind(is,32)); in intsetTest() 434 assert(intsetFind(is,32)); in intsetTest() 446 assert(intsetFind(is,65535)); in intsetTest() [all …]
|
| /f-stack/app/redis-5.0.5/tests/unit/type/ |
| H A D | stream-cgroups.tcl | 55 assert {[llength $pending] == 4} 70 assert {[llength $pending] == 2} 79 assert {[llength $pending] == 1} 81 assert {$id eq $id2} 83 assert {[llength $global_pel] == 3} 105 assert {$c == 1} 108 assert {$c == 5} 120 assert {[llength $res] == 0} 183 assert {[llength $reply] == 1} 194 assert {[llength $reply] == 1} [all …]
|
| /f-stack/app/redis-5.0.5/deps/jemalloc/include/jemalloc/internal/ |
| H A D | arena_inlines_b.h | 14 assert(ptr != NULL); in arena_prof_tctx_get() 34 assert(ptr != NULL); in arena_prof_tctx_set() 52 assert(ptr != NULL); in arena_prof_tctx_reset() 90 assert(size != 0); in arena_malloc() 115 assert(ptr != NULL); in arena_salloc() 122 assert(szind != NSIZES); in arena_salloc() 155 assert(szind != NSIZES); in arena_vsalloc() 162 assert(ptr != NULL); in arena_dalloc_no_tcache() 193 assert(ptr != NULL); in arena_dalloc() 244 assert(ptr != NULL); in arena_sdalloc_no_tcache() [all …]
|