MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / evaluate_like

Function evaluate_like

crates/gitql-engine/src/engine_evaluator.rs:413–422  ·  view source on GitHub ↗
(
    env: &mut Environment,
    expr: &LikeExpr,
    titles: &[String],
    object: &Vec<Box<dyn Value>>,
)

Source from the content-addressed store, hash-verified

411}
412
413fn evaluate_like(
414 env: &mut Environment,
415 expr: &LikeExpr,
416 titles: &[String],
417 object: &Vec<Box<dyn Value>>,
418) -> Result<Box<dyn Value>, String> {
419 let input = evaluate_expression(env, &expr.input, titles, object)?;
420 let pattern = evaluate_expression(env, &expr.pattern, titles, object)?;
421 input.like_op(&pattern)
422}
423
424fn evaluate_regex(
425 env: &mut Environment,

Callers 1

evaluate_expressionFunction · 0.85

Calls 2

evaluate_expressionFunction · 0.85
like_opMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…