MCPcopy Create free account
hub / github.com/AI45Lab/Code / file_contains

Function file_contains

core/src/verification.rs:399–403  ·  view source on GitHub ↗
(path: &Path, needle: &str)

Source from the content-addressed store, hash-verified

397}
398
399fn file_contains(path: &Path, needle: &str) -> bool {
400 std::fs::read_to_string(path)
401 .map(|content| content.contains(needle))
402 .unwrap_or(false)
403}
404
405#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
406pub struct VerificationReport {

Callers 1

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected