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

Function scenario_modify

tests/unit/core/scan/test_commit.py:164–170  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

162
163
164def scenario_modify(repo: Repository) -> None:
165 path = create_file(repo, "f", "Old content")
166 repo.add(path)
167 repo.create_commit()
168 path.write_text("New content")
169 repo.add(path)
170 repo.create_commit()
171
172
173def scenario_remove(repo: Repository) -> None:

Callers

nothing calls this directly

Calls 3

create_fileFunction · 0.85
create_commitMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected