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

Function test_nullif_second_null

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

Source from the content-addressed store, hash-verified

165
166 #[test]
167 fn test_nullif_second_null() {
168 let func = NullIfFunction::new();
169 let context = FunctionContext::new(
170 vec![],
171 HashMap::new(),
172 vec![Value::Number(5.0), Value::Null],
173 );
174
175 let result = func.execute(&context).unwrap();
176 assert_eq!(result, Value::Number(5.0));
177 }
178
179 #[test]
180 fn test_nullif_strings() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected