MCPcopy Create free account
hub / github.com/JagritGumber/evolvsql / position_function

Function position_function

native/engine/src/executor/tests/string_func.rs:47–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45#[test]
46#[serial_test::serial]
47fn position_function() {
48 setup();
49 // POSITION('lo' IN 'hello') = 4 (1-based)
50 let r = execute("SELECT POSITION('lo' IN 'hello')").unwrap();
51 assert_eq!(r.rows[0][0], Some("4".into()));
52}
53
54#[test]
55#[serial_test::serial]

Callers

nothing calls this directly

Calls 2

executeFunction · 0.85
setupFunction · 0.70

Tested by

no test coverage detected