MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / parse_body

Function parse_body

tests/fixture_runner.rs:234–241  ·  view source on GitHub ↗
(body: &str)

Source from the content-addressed store, hash-verified

232}
233
234fn parse_body(body: &str) -> Result<(Vec<FixtureFile>, usize, u32, u32), String> {
235 // Check for multi-file format: lines starting with `=== path ===`.
236 if body.contains("\n=== ") || body.starts_with("=== ") {
237 parse_multi_file_body(body)
238 } else {
239 parse_single_file_body(body)
240 }
241}
242
243fn parse_single_file_body(body: &str) -> Result<(Vec<FixtureFile>, usize, u32, u32), String> {
244 let (content, line, char) = strip_cursor(body)?;

Callers 1

parse_fixtureFunction · 0.85

Calls 3

parse_multi_file_bodyFunction · 0.85
parse_single_file_bodyFunction · 0.85
containsMethod · 0.80

Tested by

no test coverage detected