MCPcopy Create free account
hub / github.com/codeErrorSleep/dbpaw / format_value_string_long_truncated

Function format_value_string_long_truncated

src-tauri/src/mcp/tools/sql.rs:153–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151
152 #[test]
153 fn format_value_string_long_truncated() {
154 let long = "a".repeat(101);
155 let result = format_value(&Value::String(long));
156 assert_eq!(result.len(), 100);
157 assert!(result.ends_with("..."));
158 }
159
160 #[test]
161 fn format_value_string_exactly_100_chars() {

Callers

nothing calls this directly

Calls 1

format_valueFunction · 0.85

Tested by

no test coverage detected