MCPcopy
hub / github.com/GitGuardian/ggshield / create_file

Function create_file

tests/unit/core/scan/test_commit.py:132–135  ·  view source on GitHub ↗
(repo: Repository, name: str = "f", content: str = "Hello\n")

Source from the content-addressed store, hash-verified

130
131
132def create_file(repo: Repository, name: str = "f", content: str = "Hello\n") -> Path:
133 path = repo.path / name
134 path.write_text(content)
135 return path
136
137
138def file_append(path: Path, content: str) -> None:

Callers 11

scenario_addFunction · 0.85
scenario_add_twoFunction · 0.85
scenario_modifyFunction · 0.85
scenario_removeFunction · 0.85
scenario_renameFunction · 0.85
scenario_chmodFunction · 0.85
scenario_mergeFunction · 0.85
scenario_type_changeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected