MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / test_commit_changes_no_changes

Function test_commit_changes_no_changes

src/git.rs:1260–1274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1258
1259 #[tokio::test]
1260 async fn test_commit_changes_no_changes() {
1261 // Create a git repository with an initial commit
1262 let test_repo = TestGitRepository::new().unwrap();
1263 test_repo.init_with_commit().unwrap();
1264
1265 let ctx = AppContext::builder().build();
1266 let manager = RepoManager::new(&ctx);
1267
1268 // Test committing when there are no changes
1269 let result = manager
1270 .commit_changes(test_repo.path(), "Test commit")
1271 .await;
1272
1273 assert!(result.is_ok(), "Error: {result:?}");
1274 }
1275
1276 #[tokio::test]
1277 async fn test_commit_changes_with_changes() {

Callers

nothing calls this directly

Calls 4

init_with_commitMethod · 0.80
commit_changesMethod · 0.80
pathMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected