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

Function create_test_context

src/task_builder.rs:693–701  ·  view source on GitHub ↗

Helper to create a standard test context with real file system and git operations Returns (git_repo, AppContext)

()

Source from the content-addressed store, hash-verified

691 /// Helper to create a standard test context with real file system and git operations
692 /// Returns (git_repo, AppContext)
693 async fn create_test_context() -> (crate::test_utils::TestGitRepository, AppContext) {
694 use crate::test_utils::TestGitRepository;
695
696 let test_repo = TestGitRepository::new().unwrap();
697 test_repo.init_with_commit().unwrap();
698 let ctx = AppContext::builder().build();
699
700 (test_repo, ctx)
701 }
702
703 /// Helper function to create a basic task for testing
704 async fn create_basic_task(name: &str, prompt: &str) -> Task {

Calls 2

init_with_commitMethod · 0.80
buildMethod · 0.45