Lines Matching refs:is_null
212 /// assert_eq!(null_value.is_null(), true);
215 /// assert_eq!(other_value.is_null(), false);
217 pub fn is_null(&self) -> bool {
1055 /// UT test for `JsonValue::is_null`.
1062 /// 2. Calls `JsonValue::is_null`.
1066 assert!(JsonValue::new_null().is_null());
1067 assert!(!JsonValue::new_boolean(true).is_null());
1068 assert!(!JsonValue::new_boolean(false).is_null());
1069 assert!(!JsonValue::new_number(12.34.into()).is_null());
1070 assert!(!JsonValue::new_string("hello").is_null());
1071 assert!(!JsonValue::new_array(Array::new()).is_null());
1072 assert!(!JsonValue::new_object(Object::new()).is_null());