MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / extract_text

Function extract_text

tests/core_cli_suite/walk_up_test.rs:68–72  ·  view source on GitHub ↗
(value: &serde_json::Value)

Source from the content-addressed store, hash-verified

66}
67
68fn extract_text(value: &serde_json::Value) -> &str {
69 value["content"][0]["text"]
70 .as_str()
71 .unwrap_or("<missing text>")
72}
73
74#[tokio::test]
75async fn test_discover_project_root_from_subdir() {

Callers 2

test_traversal_unscopedFunction · 0.70

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected