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

Method configure_test_user

src/test_utils/git_test_utils.rs:40–44  ·  view source on GitHub ↗

Configures git user identity for testing. This is needed in CI environments where global git config is not set.

(&self)

Source from the content-addressed store, hash-verified

38 /// Configures git user identity for testing.
39 /// This is needed in CI environments where global git config is not set.
40 pub fn configure_test_user(&self) -> Result<()> {
41 self.run_git_command(&["config", "user.email", "test@example.com"])?;
42 self.run_git_command(&["config", "user.name", "Test User"])?;
43 Ok(())
44 }
45
46 /// Stages all changes in the repository.
47 pub fn stage_all(&self) -> Result<()> {

Calls 1

run_git_commandMethod · 0.80

Tested by

no test coverage detected