/third_party/node/test/parallel/ |
H A D | test-crypto-pbkdf2.js | 6 const assert = require('assert'); 15 assert.deepStrictEqual(asyncResult, syncResult); 23 assert.strictEqual(actual.toString(encoding || 'latin1'), expected); 58 assert.throws( 67 assert.throws( 77 assert.throws( 89 assert.throws( 102 assert.throws( 116 assert [all...] |
H A D | test-fs-mkdtemp.js | 4 const assert = require('assert'); 12 assert.ifError(err); 13 assert(fs.existsSync(folder)); 14 assert.strictEqual(this, undefined); 21 assert.strictEqual(path.basename(tmpFolder).length, 'foo.XXXXXX'.length); 22 assert(fs.existsSync(tmpFolder)); 25 assert.strictEqual(Buffer.byteLength(path.basename(utf8)), 27 assert(fs.existsSync(utf8)); 45 assert [all...] |
H A D | test-stream2-writable.js | 26 const assert = require('assert'); 58 assert.deepStrictEqual(tw.buffer, chunks); 76 assert.deepStrictEqual(tw.buffer, chunks); 99 assert.deepStrictEqual(tw.buffer, chunks); 100 assert.strictEqual(drains, 17); 115 assert(tw.writableLength >= 50); 145 assert.deepStrictEqual(tw.buffer, chunks); 163 assert.strictEqual(typeof chunk, 'string'); 184 assert [all...] |
H A D | test-http2-create-client-secure-session.js | 10 const assert = require('assert'); 23 assert(stream.session.encrypted); 24 assert.strictEqual(stream.session.alpnProtocol, 'h2'); 26 assert(Array.isArray(originSet)); 27 assert.strictEqual(originSet[0], 30 assert(headers[':authority'].startsWith(socket.servername)); 48 assert.strictEqual(client.socket.listenerCount('secureConnect'), 1); 52 assert(client.encrypted); 53 assert [all...] |
H A D | test-validators.js | 5 const assert = require('assert'); 37 assert.throws(() => { 40 assert.throws(() => { 51 ].forEach((val) => assert.throws(() => validateInt32(val, 'name'), { 56 ].forEach((val) => assert.throws(() => validateInt32(val, 'name'), { 64 ].forEach((val) => assert.throws(() => validateUint32(val, 'name'), { 69 ].forEach((val) => assert.throws(() => validateUint32(val, 'name'), { 84 assert.throws(() => { 90 assert [all...] |
H A D | test-whatwg-url-custom-parsing.js | 11 const assert = require('assert'); 54 assert.throws( 57 assert.throws(() => { throw error; }, expectedError); 58 assert.strictEqual(`${error}`, 'TypeError [ERR_INVALID_URL]: Invalid URL'); 59 assert.strictEqual(error.message, 'Invalid URL'); 69 if (test.href) assert.strictEqual(url.href, test.href); 70 if (test.origin) assert.strictEqual(url.origin, test.origin); 71 if (test.protocol) assert.strictEqual(url.protocol, test.protocol); 72 if (test.username) assert [all...] |
H A D | test-crypto-dh-errors.js | 6 const assert = require('assert'); 12 assert.throws(() => crypto.createDiffieHellman(13.37), { 19 assert.throws(() => crypto.createDiffieHellman('abcdef', 13.37), { 28 assert.throws(() => crypto.createDiffieHellman(bits), { 34 assert.throws(() => crypto.createDiffieHellman(bits), { 48 assert.throws(() => crypto.createDiffieHellman('abcdef', g), ex); 49 assert.throws(() => crypto.createDiffieHellman('abcdef', 'hex', g), ex); 60 assert.throws(() => crypto.createDiffieHellman('abcdef', g), ex); 61 assert [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_sockopt.c | 5 #include <assert.h> 289 assert(ret < 0); /* 0 size_subflow_data */ in do_getsockopt_bogus_sf_data() 290 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data() 295 assert(ret == 0); in do_getsockopt_bogus_sf_data() 296 assert(olen == sizeof(good_data)); in do_getsockopt_bogus_sf_data() 297 assert(bd.d.num_subflows == 1); in do_getsockopt_bogus_sf_data() 298 assert(bd.d.size_kernel > 0); in do_getsockopt_bogus_sf_data() 299 assert(bd.d.size_user == 0); in do_getsockopt_bogus_sf_data() 305 assert(ret < 0); /* bogus olen */ in do_getsockopt_bogus_sf_data() 306 assert(ole in do_getsockopt_bogus_sf_data() [all...] |
/third_party/rust/crates/clap/tests/builder/ |
H A D | require.rs | 13 assert!(result.is_err()); in flag_required() 29 assert!(*m.get_one::<bool>("color").expect("defaulted by clap")); in flag_required_2() 30 assert!(*m.get_one::<bool>("flag").expect("defaulted by clap")); in flag_required_2() 39 assert!(result.is_err()); in option_required() 51 assert!(m.contains_id("c")); in option_required_2() 56 assert!(m.contains_id("f")); in option_required_2() 65 assert!(result.is_err()); in positional_required() 76 assert!(m.contains_id("flag")); in positional_required_2() 154 assert!(result.is_err()); in group_required() 168 assert!(* in group_required_2() [all...] |
H A D | arg_aliases.rs | 16 assert!(a.is_ok(), "{}", a.unwrap_err()); in single_alias_of_option() 18 assert!(a.contains_id("alias")); in single_alias_of_option() 37 assert!(long.is_ok(), "{}", long.unwrap_err()); in multiple_aliases_of_option() 43 assert!(als1.is_ok(), "{}", als1.unwrap_err()); in multiple_aliases_of_option() 49 assert!(als2.is_ok(), "{}", als2.unwrap_err()); in multiple_aliases_of_option() 55 assert!(als3.is_ok(), "{}", als3.unwrap_err()); in multiple_aliases_of_option() 58 assert!(long.contains_id("aliases")); in multiple_aliases_of_option() 59 assert!(als1.contains_id("aliases")); in multiple_aliases_of_option() 60 assert!(als2.contains_id("aliases")); in multiple_aliases_of_option() 61 assert!(als in multiple_aliases_of_option() [all...] |
/third_party/rust/crates/clap/src/builder/ |
H A D | debug_asserts.rs | 23 assert!( 51 assert!(!l.starts_with('-'), "Command {}: long_flag {:?} must not start with a `-`, that will be handled by the parser", sc.get_name(), l); 63 assert!( 79 assert!(!l.starts_with('-'), "Argument {}: long {:?} must not start with a `-`, that will be handled by the parser", arg.get_id(), l); 146 assert!( 156 assert!( 161 assert!( 171 assert!( 176 assert!( 186 assert!( [all...] |
/third_party/node/test/fixtures/ |
H A D | process-exit-code-cases.js | 3 const assert = require('assert'); 10 assert.strictEqual(process.exitCode, 42); 11 assert.strictEqual(code, 42); 19 assert.strictEqual(process.exitCode, 42); 20 assert.strictEqual(code, 42); 29 assert.strictEqual(process.exitCode, 0); 30 assert.strictEqual(code, 0); 39 // cannot use assert because it will be uncaughtException -> 1 exit code 57 assert [all...] |
/third_party/jerryscript/tests/jerry/ |
H A D | date-utc.js | 18 assert (isNaN(d)); 21 assert (isNaN(d)); 24 assert (isNaN(d)); 27 assert (d == 1420070400000); 30 assert (d == 1420070400000); 33 assert (d == 1420070400000); 36 assert (d == 1420070400000); 39 assert (d == 1420070400000); 42 assert (d == 1420070400000); 45 assert ( [all...] |
H A D | for.js | 19 assert(i == 100); 24 assert(j == 100); 30 assert(false); 34 assert(i == 100); 41 assert(i != 100); 42 assert(j != 100); 43 assert(i == 10); 44 assert(j == 10); 60 assert (s === '01'); 77 assert ( [all...] |
H A D | array-prototype-tolocalestring.js | 15 assert ([].toLocaleString() === ""); 16 assert ([1].toLocaleString() === "1"); 17 assert ([1,2].toLocaleString() === "1,2"); 18 assert ([1,2,3].toLocaleString() === "1,2,3"); 25 assert ([3, test_ok, 4, test_ok].toLocaleString() === "3,1,4,1"); 31 assert(test_non_str_locale.toLocaleString() === ",undefined,,undefined,undefined"); 39 assert (false); 41 assert (e instanceof TypeError); 52 assert (false); 54 assert ( [all...] |
/third_party/jerryscript/tests/jerry/es5.1/ |
H A D | object-getprototypeof.js | 18 assert (false); 20 assert (e instanceof TypeError); 25 assert (false); 27 assert (e instanceof TypeError); 32 assert (false); 34 assert (e instanceof TypeError); 39 assert (false); 41 assert (e instanceof TypeError); 45 assert (Object.getPrototypeOf(obj) === Object.prototype); 51 assert (Objec [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | reflect-deleteproperty.js | 25 assert (object.property === undefined); 27 assert (2 === Reflect.deleteProperty.length); 31 assert (false); 33 assert (e instanceof TypeError); 38 assert (false); 40 assert (e instanceof TypeError); 45 assert (false); 47 assert (e instanceof TypeError); 54 assert (Reflect.deleteProperty (target, a)); 58 assert (fals [all...] |
H A D | math-trunc.js | 26 assert (isNaN(Math['trunc'](NaN))); 27 assert (isSameZero (Math['trunc'](p_zero), p_zero)); 28 assert (isSameZero (Math['trunc'](m_zero), m_zero)); 29 assert (Math['trunc'](p_inf) === p_inf); 30 assert (Math['trunc'](m_inf) === m_inf); 31 assert (isSameZero (Math['trunc'](0.5), p_zero)); 32 assert (isSameZero (Math['trunc'](-0.5), m_zero)); 33 assert (Math['trunc'](1.2) === 1); 34 assert (Math['trunc'](-1.5) === -1); 35 assert (Mat [all...] |
H A D | arguments-iterator.js | 18 assert(typeof arguments[Symbol.iterator] === 'function'); 19 assert(arguments[Symbol.iterator] === arrayPrototypeValues); 20 assert(Object.hasOwnProperty.call(arguments, Symbol.iterator)); 30 assert(typeof arguments[Symbol.iterator] === 'function'); 31 assert(arguments[Symbol.iterator] === arrayPrototypeValues); 32 assert(Object.hasOwnProperty.call(arguments, Symbol.iterator)); 41 assert(f_mapped(1, 2, 3, 4, 5) === 15); 42 assert(f_unmapped(1, 2, 3, 4, 5) === 15); 46 assert(false); 49 assert(f_mappe [all...] |
H A D | proxy_revocable.js | 26 assert(proxy.a === 5); 32 assert(false); 34 assert(e instanceof TypeError); 39 assert(false); 41 assert(e instanceof TypeError); 46 assert(false); 48 assert(e instanceof TypeError); 53 assert(false); 55 assert(e instanceof TypeError); 60 assert(fals [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_maps.c | 13 #include <assert.h> 51 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 55 assert(bpf_map_update_elem(fd, &key, &value, BPF_NOEXIST) < 0 && in test_hashmap() 60 assert(bpf_map_update_elem(fd, &key, &value, -1) < 0 && in test_hashmap() 64 assert(bpf_map_lookup_elem(fd, &key, &value) == 0 && value == 1234); in test_hashmap() 69 assert(bpf_map_update_elem(fd, &key, &value, BPF_ANY) == 0); in test_hashmap() 72 assert(bpf_map_lookup_and_delete_elem(fd, &key, &value) == 0 && value == 1234); in test_hashmap() 75 assert(bpf_map_lookup_elem(fd, &key, &value) < 0 && errno == ENOENT); in test_hashmap() 78 assert(bpf_map_update_elem(fd, &key, &value, BPF_EXIST) < 0 && in test_hashmap() 83 assert(bpf_map_update_ele in test_hashmap() [all...] |
/third_party/alsa-utils/axfer/ |
H A D | xfer.c | 53 assert(xfer); in xfer_context_init() 54 assert(direction >= SND_PCM_STREAM_PLAYBACK); in xfer_context_init() 55 assert(direction <= SND_PCM_STREAM_CAPTURE); in xfer_context_init() 89 assert(xfer); in xfer_context_destroy() 123 assert(xfer); in xfer_context_pre_process() 124 assert(format); in xfer_context_pre_process() 125 assert(samples_per_frame); in xfer_context_pre_process() 126 assert(frames_per_second); in xfer_context_pre_process() 127 assert(access); in xfer_context_pre_process() 128 assert(frames_per_buffe in xfer_context_pre_process() [all...] |
/third_party/libfuse/test/ |
H A D | test_write_cache.c | 19 #include <assert.h> 64 assert(conn->capable & FUSE_CAP_WRITEBACK_CACHE); in tfs_init() 127 assert(ino == FILE_INO); in tfs_open() 140 assert(ino == FILE_INO); in tfs_write() 198 assert(fuse_session_loop(se) == 0); in run_fs() 210 assert(buf != NULL); in test_fs() 211 assert((fd = open("/dev/urandom", O_RDONLY)) != -1); in test_fs() 212 assert(read(fd, buf, dsize) == dsize); in test_fs() 215 assert(snprintf(fname, PATH_MAX, "%s/" FILE_NAME, in test_fs() 220 assert( in test_fs() [all...] |
/third_party/rust/crates/autocfg/src/ |
H A D | tests.rs | 31 assert!(ac.probe_rustc_version(1, 0)); in autocfg_version() 39 assert!(Version::new(1, 0, 0) < v123); in version_cmp() 40 assert!(Version::new(1, 2, 2) < v123); in version_cmp() 41 assert!(Version::new(1, 2, 3) == v123); in version_cmp() 42 assert!(Version::new(1, 2, 4) > v123); in version_cmp() 43 assert!(Version::new(1, 10, 0) > v123); in version_cmp() 44 assert!(Version::new(2, 0, 0) > v123); in version_cmp() 54 assert!(ac.probe_path(&add)); in probe_add() 55 assert!(ac.probe_trait(&add)); in probe_add() 56 assert!(a in probe_add() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/proc/ |
H A D | proc-subset-pid.c | 21 #include <assert.h> 78 assert(d); in main() 89 assert(!dot); in main() 91 assert(de->d_type == DT_DIR); in main() 93 assert(!dot_dot); in main() 95 assert(de->d_type == DT_DIR); in main() 97 assert(!self); in main() 99 assert(de->d_type == DT_LNK); in main() 101 assert(!thread_self); in main() 103 assert(d in main() [all...] |