Home
last modified time | relevance | path

Searched refs:is_none (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/external/rust/crates/clap/src/
Dusage_parser.rs95 if arg.s.long.is_none() && arg.s.short.is_none() { in name()
187 if arg.v.val_delim.is_none() { in multiple()
243 assert!(a.s.long.is_none()); in create_flag_usage()
246 assert!(a.v.val_names.is_none()); in create_flag_usage()
247 assert!(a.v.num_vals.is_none()); in create_flag_usage()
252 assert!(b.s.short.is_none()); in create_flag_usage()
255 assert!(a.v.val_names.is_none()); in create_flag_usage()
256 assert!(a.v.num_vals.is_none()); in create_flag_usage()
261 assert!(b.s.short.is_none()); in create_flag_usage()
264 assert!(b.v.val_names.is_none()); in create_flag_usage()
[all …]
/external/crosvm/devices/src/virtio/fs/
Dmultikey.rs123 assert!(m.insert(k1, k2, val).is_none()); in get()
136 assert!(m.insert(k1, k2, val).is_none()); in update_main_key()
146 assert!(m.get(&k1).is_none()); in update_main_key()
158 assert!(m.insert(k1, k2, val).is_none()); in update_alt_key()
168 assert!(m.get_alt(&k2).is_none()); in update_alt_key()
183 assert!(m.insert(k1, k2, val).is_none()); in update_value()
202 assert!(m.insert(k1, k2, val).is_none()); in update_both_keys_main()
207 assert!(m.insert(new_k1, new_k2, val2).is_none()); in update_both_keys_main()
217 assert!(m.get(&new_k1).is_none()); in update_both_keys_main()
218 assert!(m.get_alt(&k2).is_none()); in update_both_keys_main()
[all …]
/external/rust/crates/hashlink/tests/
Dlru_cache.rs35 assert!(cache.get_mut("foo1").is_none()); in test_expire_lru()
38 assert!(cache.get_mut("foo3").is_none()); in test_expire_lru()
50 assert!(cache.get_mut(&1).is_none()); in test_pop()
61 assert!(cache.get_mut(&1).is_none()); in test_change_capacity()
75 assert!(cache.get_mut(&3).is_none()); in test_remove()
76 assert!(cache.get_mut(&4).is_none()); in test_remove()
80 assert!(cache.get_mut(&5).is_none()); in test_remove()
92 assert!(cache.get_mut(&1).is_none()); in test_clear()
93 assert!(cache.get_mut(&2).is_none()); in test_clear()
Dlinked_hash_map.rs110 assert!(map.get(&3).is_none()); in test_remove()
111 assert!(map.get(&4).is_none()); in test_remove()
129 assert!(map.get(&1).is_none()); in test_pop()
131 assert!(map.get(&5).is_none()); in test_pop()
136 assert!(map.get(&2).is_none()); in test_pop()
138 assert!(map.get(&8).is_none()); in test_pop()
141 assert!(map.get(&4).is_none()); in test_pop()
143 assert!(map.get(&3).is_none()); in test_pop()
190 assert!(map.get(&1).is_none()); in test_clear()
191 assert!(map.get(&2).is_none()); in test_clear()
[all …]
/external/rust/crates/anyhow/tests/
Dtest_chain.rs15 assert!(chain.next().is_none()); in test_iter()
16 assert!(chain.next_back().is_none()); in test_iter()
27 assert!(chain.next().is_none()); in test_rev()
28 assert!(chain.next_back().is_none()); in test_rev()
44 assert!(chain.next().is_none()); in test_len()
Dtest_source.rs30 assert!(error.source().is_none()); in test_literal_source()
37 assert!(error.source().is_none()); in test_variable_source()
41 assert!(error.source().is_none()); in test_variable_source()
47 assert!(error.source().is_none()); in test_fmt_source()
/external/rust/crates/linked-hash-map/tests/
Dtest.rs79 assert!(iter.next().is_none()); in test_entries_replacing()
127 assert!(iter.next().is_none()); in test_entries_remove()
153 assert!(iter.next().is_none()); in entries_insert()
184 assert!(map.get(&3).is_none()); in test_remove()
185 assert!(map.get(&4).is_none()); in test_remove()
204 assert!(map.get(&1).is_none()); in test_pop()
206 assert!(map.get(&5).is_none()); in test_pop()
211 assert!(map.get(&2).is_none()); in test_pop()
213 assert!(map.get(&8).is_none()); in test_pop()
216 assert!(map.get(&4).is_none()); in test_pop()
[all …]
/external/rust/crates/tokio/src/util/
Dlinked_list.rs133 if self.tail.is_none() { in push_front()
165 assert!(self.tail.is_none()); in is_empty()
439 assert!($e.pointers.get_next().is_none());
440 assert!($e.pointers.get_prev().is_none());
495 assert!(list.pop_back().is_none()); in push_pop_push_pop()
512 assert!(list.remove(ptr(&a)).is_none()); in remove_by_address()
518 assert!(list.remove(ptr(&b)).is_none()); in remove_by_address()
524 assert!(list.remove(ptr(&c)).is_none()); in remove_by_address()
571 assert!(b.pointers.get_next().is_none()); in remove_by_address()
589 assert!(list.remove(ptr(&a)).is_none()); in remove_by_address()
[all …]
/external/rust/crates/protobuf/src/reflect/
Dmessage.rs101 .is_none()); in new_non_generic_by_rust_name()
104 .is_none()); in new_non_generic_by_rust_name()
107 .is_none()); in new_non_generic_by_rust_name()
112 assert!(index_by_name_or_json_name.insert(json_name, i).is_none()); in new_non_generic_by_rust_name()
165 .is_none()); in new_non_generic_by_pb_name()
168 .is_none()); in new_non_generic_by_pb_name()
171 .is_none()); in new_non_generic_by_pb_name()
176 assert!(index_by_name_or_json_name.insert(json_name, i).is_none()); in new_non_generic_by_pb_name()
/external/rust/crates/futures/tests/
Dio_lines.rs33 assert!(block_on(s.next()).is_none()); in lines()
39 assert!(block_on(s.next()).is_none()); in lines()
62 assert!(run(s.next()).is_none()); in maybe_pending()
71 assert!(run(s.next()).is_none()); in maybe_pending()
Dshared.rs125 assert!(f1.peek().is_none()); in peek()
126 assert!(f2.peek().is_none()); in peek()
132 assert!(f1.peek().is_none()); in peek()
133 assert!(f2.peek().is_none()); in peek()
170 assert!(weak.upgrade().is_none()); in downgrade()
171 assert!(shared2.downgrade().is_none()); in downgrade()
/external/rust/crates/itertools/tests/
Dtest_core.rs45 assert!(zip.next().is_none()); in izip_macro()
51 assert!(zip.next().is_none()); in izip_macro()
55 assert!(zip.next().is_none()); in izip_macro()
70 assert!(zip.next().is_none()); in izip3()
79 assert!(zip.next().is_none()); in multizip3()
83 assert!(zip.next().is_none()); in multizip3()
130 assert!(it.next().is_none()); in dropping()
132 assert!(it.next().is_none()); in dropping()
/external/rust/crates/tokio-stream/tests/
Dstream_stream_map.rs37 assert!(map.next().await.is_none()); in empty()
38 assert!(map.next().await.is_none()); in empty()
40 assert!(map.remove("foo").is_none()); in empty()
51 assert!(map.insert("foo", rx).is_none()); in single_entry()
150 assert!(map.insert("foo", rx).is_none()); in insert_remove()
158 assert!(map.insert("bar", rx).is_none()); in insert_remove()
180 assert!(map.insert("foo", rx1).is_none()); in replace()
230 assert!(map.keys().next().is_none()); in new_capacity_zero()
238 assert!(map.keys().next().is_none()); in with_capacity()
/external/rust/crates/lru-cache/src/
Dlib.rs471 assert!(cache.get_mut("foo1").is_none()); in test_expire_lru()
474 assert!(cache.get_mut("foo3").is_none()); in test_expire_lru()
486 assert!(cache.get_mut(&1).is_none()); in test_pop()
497 assert!(cache.get_mut(&1).is_none()); in test_change_capacity()
528 assert!(cache.get_mut(&3).is_none()); in test_remove()
529 assert!(cache.get_mut(&4).is_none()); in test_remove()
533 assert!(cache.get_mut(&5).is_none()); in test_remove()
545 assert!(cache.get_mut(&1).is_none()); in test_clear()
546 assert!(cache.get_mut(&2).is_none()); in test_clear()
/external/rust/crates/tokio/src/sync/tests/
Dloom_mpsc.rs23 assert!(v.is_none()); in closing_tx()
41 assert!(v.is_none()); in closing_unbounded_tx()
114 assert!(v.is_none()); in dropping_tx()
132 assert!(v.is_none()); in dropping_unbounded_tx()
/external/rust/crates/criterion/src/analysis/
Dmod.rs131 if criterion.connection.is_none() && criterion.load_baseline.is_none() { in common()
142 if criterion.connection.is_none() { in common()
159 if criterion.connection.is_none() && criterion.load_baseline.is_none() { in common()
240 if criterion.connection.is_none() && criterion.load_baseline.is_none() { in common()
250 if criterion.connection.is_none() { in common()
/external/python/pybind11/tests/
Dtest_eval.cpp60 return result.is_none() && x == 42; in TEST_SUBMODULE()
71 return val_out == 43 && result.is_none(); in TEST_SUBMODULE()
94 if (global.is_none()) in TEST_SUBMODULE()
/external/rust/crates/tokio/src/
Dcoop.rs205 self.0.is_none()
223 assert!(get().0.is_none()); in bugeting()
227 assert!(get().0.is_none()); in bugeting()
229 assert!(get().0.is_none()); in bugeting()
266 assert!(get().0.is_none()); in bugeting()
/external/rust/crates/remain/src/
Dcheck.rs18 if find_misordered(&paths, mode).is_none() { in sorted()
135 pat.by_ref.is_none() && pat.mutability.is_none() && pat.subpat.is_none() in is_just_ident()
/external/rust/crates/regex/src/
Dinput.rs30 self.c.is_none() && self.byte.is_none() in is_end()
296 if c1.is_none() && !at.is_start() { in is_empty_match()
299 if c2.is_none() && !at.is_end() { in is_empty_match()
310 if c1.is_none() && !at.is_start() { in is_empty_match()
313 if c2.is_none() && !at.is_end() { in is_empty_match()
362 pub fn is_none(self) -> bool { in is_none() method
/external/rust/crates/log/src/kv/
Dvalue.rs508 assert!(Value::from_display(&42).to_u64().is_none()); in test_capture_fmt()
509 assert!(Value::from_debug(&42).to_u64().is_none()); in test_capture_fmt()
582 assert!(v.to_u64().is_none()); in test_to_number()
583 assert!(v.to_i64().is_none()); in test_to_number()
584 assert!(v.to_f64().is_none()); in test_to_number()
606 assert!(v.to_borrowed_str().is_none()); in test_to_str()
609 assert!(v.to_str().is_none()); in test_to_str()
625 assert!(v.to_bool().is_none()); in test_to_bool()
641 assert!(v.to_char().is_none()); in test_to_char()
/external/rust/crates/tokio/tests/
Dsync_mpsc.rs45 assert!(val.is_none()); in send_recv_with_buffer()
145 assert!(rx.recv().await.is_none()); in start_send_past_cap()
167 assert!(rx.recv().await.is_none()); in send_recv_unbounded()
270 assert!(rx.recv().await.is_none()); in recv_close_gets_none_idle()
300 assert!(rx.recv().await.is_none()); in recv_close_gets_none_reserved()
306 assert!(rx.recv().await.is_none()); in tx_close_gets_none()
327 assert!(rx.recv().await.is_none()); in try_send_fail()
476 assert!(val.is_none()); in ready_close_cancel_bounded()
495 assert!(rx.recv().await.is_none()); in permit_available_not_acquired_close()
/external/rust/crates/env_logger/src/filter/
Dmod.rs697 assert!(filter.is_none()); in parse_spec_valid()
707 assert!(filter.is_none()); in parse_spec_invalid_crate()
717 assert!(filter.is_none()); in parse_spec_invalid_level()
727 assert!(filter.is_none()); in parse_spec_string_level()
737 assert!(filter.is_none()); in parse_spec_empty_level()
745 assert!(filter.is_none()); in parse_spec_empty_level_isolated()
754 assert!(filter.is_none()); in parse_spec_blank_level_isolated()
764 assert!(filter.is_none()); in parse_spec_blank_level_isolated_comma_only()
775 assert!(filter.is_none()); in parse_spec_blank_level_isolated_comma_blank()
786 assert!(filter.is_none()); in parse_spec_blank_level_isolated_blank_comma()
[all …]
/external/rust/crates/syn/tests/
Dtest_path.rs69 assert!(ty.path.segments.pop().is_none()); in print_incomplete_qpath()
84 assert!(ty.path.segments.pop().is_none()); in print_incomplete_qpath()
103 assert!(ty.path.segments.pop().is_none()); in print_incomplete_qpath()
/external/rust/crates/rusqlite/src/vtab/
Dcsvtab.rs206 if vtab.has_headers || (n_col.is_none() && schema.is_none()) { in connect()
212 if n_col.is_none() && schema.is_none() { in connect()
234 if cols.is_empty() && schema.is_none() { in connect()
238 if schema.is_none() { in connect()

12345678910>>...16