(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func TestV2Commands_DisplayText(t *testing.T) { |
| 42 | t.Parallel() |
| 43 | cfg, err := Load(t.Context(), NewFileSource("testdata/commands_v2.yaml")) |
| 44 | require.NoError(t, err) |
| 45 | |
| 46 | // Simple format: DisplayText returns the instruction |
| 47 | require.Equal(t, "root", cfg.Agents[0].Name) |
| 48 | require.Equal(t, "check disk", cfg.Agents[0].Commands["df"].DisplayText()) |
| 49 | |
| 50 | // Advanced format: DisplayText returns description if available |
| 51 | require.Equal(t, "advanced_agent", cfg.Agents[2].Name) |
| 52 | require.Equal(t, "Fix linting errors in the codebase", cfg.Agents[2].Commands["fix-lint"].DisplayText()) |
| 53 | } |
| 54 | |
| 55 | func TestMigrate_v1_Commands_AllForms(t *testing.T) { |
| 56 | t.Parallel() |
nothing calls this directly
no test coverage detected