MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / test_nullif_first_null

Function test_nullif_first_null

graphlite/src/functions/null_functions.rs:154–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153 #[test]
154 fn test_nullif_first_null() {
155 let func = NullIfFunction::new();
156 let context = FunctionContext::new(
157 vec![],
158 HashMap::new(),
159 vec![Value::Null, Value::Number(3.0)],
160 );
161
162 let result = func.execute(&context).unwrap();
163 assert!(result.is_null());
164 }
165
166 #[test]
167 fn test_nullif_second_null() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected