MCPcopy Create free account
hub / github.com/erans/pgsqlite / test_text_value_handling

Function test_text_value_handling

src/protocol/value_handler.rs:426–438  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

424
425 #[test]
426 fn test_text_value_handling() {
427 let handler = ValueHandler::new();
428 let text_value = SqliteValue::Text("hello world".to_string());
429
430 let result = handler.convert_value(&text_value, 25, false).unwrap(); // TEXT
431
432 match result {
433 Some(MappedValue::Memory(data)) => {
434 assert_eq!(data, b"hello world");
435 }
436 _ => panic!("Expected memory storage for text"),
437 }
438 }
439
440 #[test]
441 fn test_integer_value_handling() {

Callers

nothing calls this directly

Calls 1

convert_valueMethod · 0.45

Tested by

no test coverage detected