MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_status_run_short_format

Function test_status_run_short_format

atomic-cli/src/commands/status.rs:1870–1897  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1868 #[test]
1869 #[file_serial]
1870 fn test_status_run_short_format() {
1871 let _guard = DirGuard::new();
1872
1873 let temp_dir = tempfile::tempdir().unwrap();
1874 let repo_path = temp_dir.path();
1875
1876 // Initialize a repository and drop handle to release lock
1877 {
1878 let repo_result = Repository::init(repo_path);
1879 assert!(
1880 repo_result.is_ok(),
1881 "Failed to init repository: {:?}",
1882 repo_result.err()
1883 );
1884 }
1885
1886 // Change to repo directory
1887 std::env::set_current_dir(repo_path).unwrap();
1888
1889 let status = Status::new().with_short(true);
1890 let result = status.run();
1891
1892 assert!(
1893 result.is_ok(),
1894 "Status short command failed: {:?}",
1895 result.err()
1896 );
1897 }
1898
1899 #[test]
1900 #[file_serial]

Callers

nothing calls this directly

Calls 5

with_shortMethod · 0.80
initFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected