MCPcopy
hub / github.com/langroid/langroid / test_git_commit_file

Function test_git_commit_file

tests/main/test_git_utils.py:70–77  ·  view source on GitHub ↗
(temp_git_repo)

Source from the content-addressed store, hash-verified

68
69
70def test_git_commit_file(temp_git_repo):
71 test_file = os.path.join(temp_git_repo.working_dir, "test.txt")
72 with open(test_file, "w") as f:
73 f.write("Test content")
74
75 git_commit_file(temp_git_repo, "test.txt", "Test commit")
76
77 assert "test.txt" in temp_git_repo.git.ls_files().split()
78
79
80def test_git_commit_mods(temp_git_repo):

Callers

nothing calls this directly

Calls 3

git_commit_fileFunction · 0.90
writeMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…