MCPcopy Index your code
hub / github.com/endbasic/endbasic / is_source_header

Function is_source_header

core/tests/testutils/mod.rs:55–57  ·  view source on GitHub ↗

Returns true if the `line` corresponds to a source section.

(line: &str)

Source from the content-addressed store, hash-verified

53
54/// Returns true if the `line` corresponds to a source section.
55fn is_source_header(line: &str) -> bool {
56 line == "## Source" || line == "## Source (partial)"
57}
58
59/// Reads the source sections of a golden test description file.
60fn read_sources(path: &Path) -> io::Result<Tests> {

Callers 1

read_sourcesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected