(t *testing.T)
| 351 | "Do not propose scheduling during playbook intake", |
| 352 | "the bootstrapped task\" includes playbook-run tasks", |
| 353 | } { |
| 354 | if !strings.Contains(got, want) { |
| 355 | t.Errorf("skill missing %q", want) |
| 356 | } |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | func TestSkillHasPlaybookSections(t *testing.T) { |
| 361 | got := skillCorpus(t) |
| 362 | for _, want := range []string{ |
| 363 | "### 4.12 Add a playbook", |
| 364 | "### 4.13 Run a playbook", |
| 365 | "fire the X agent", |
| 366 | "kind: playbook_run", |
| 367 | "snapshot taken when this run started", |
| 368 | "Files listed under `other:`", |
| 369 | "load on demand", |
| 370 | "Auxiliary files in entity directories", |
| 371 | } { |
| 372 | if !strings.Contains(got, want) { |
nothing calls this directly
no outgoing calls
no test coverage detected