MCPcopy Create free account
hub / github.com/apache/datafusion / test_fn_initcap

Function test_fn_initcap

datafusion/core/tests/dataframe/dataframe_functions.rs:563–582  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

561
562#[tokio::test]
563async fn test_fn_initcap() -> Result<()> {
564 let expr = initcap(col("a"));
565
566 let batches = get_batches(expr).await?;
567
568 assert_snapshot!(
569 batches_to_string(&batches),
570 @r"
571 +-----------------+
572 | initcap(test.a) |
573 +-----------------+
574 | Abcdef |
575 | Abc123 |
576 | Cbadef |
577 | 123abcdef |
578 +-----------------+
579 ");
580
581 Ok(())
582}
583
584#[tokio::test]
585#[cfg(feature = "unicode_expressions")]

Callers

nothing calls this directly

Calls 3

initcapFunction · 0.85
get_batchesFunction · 0.85
colFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…