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

Function verify_instructions_content

src/task_builder.rs:719–730  ·  view source on GitHub ↗

Helper to verify task instructions content

(ctx: &AppContext, task: &Task, expected_content: &str)

Source from the content-addressed store, hash-verified

717
718 /// Helper to verify task instructions content
719 async fn verify_instructions_content(ctx: &AppContext, task: &Task, expected_content: &str) {
720 let instructions_path = ctx
721 .tsk_env()
722 .data_dir()
723 .join("tasks")
724 .join(&task.id)
725 .join(&task.instructions_file);
726 let content = crate::file_system::read_file(&instructions_path)
727 .await
728 .unwrap();
729 assert!(content.contains(expected_content));
730 }
731
732 #[tokio::test]
733 async fn test_task_builder_basic() {

Calls 3

read_fileFunction · 0.85
data_dirMethod · 0.80
tsk_envMethod · 0.80