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

Function test_nullif_strings

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

Source from the content-addressed store, hash-verified

178
179 #[test]
180 fn test_nullif_strings() {
181 let func = NullIfFunction::new();
182 let context = FunctionContext::new(
183 vec![],
184 HashMap::new(),
185 vec![
186 Value::String("hello".to_string()),
187 Value::String("hello".to_string()),
188 ],
189 );
190
191 let result = func.execute(&context).unwrap();
192 assert!(result.is_null());
193 }
194
195 #[test]
196 fn test_coalesce_first_non_null() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected