| 6 | ) |
| 7 | |
| 8 | func TestToolAnnotations_Defaults(t *testing.T) { |
| 9 | a := &ToolAnnotations{} |
| 10 | |
| 11 | if a.ReadOnly { |
| 12 | t.Error("ReadOnly should be false by default") |
| 13 | } |
| 14 | if a.Destructive { |
| 15 | t.Error("Destructive should be false by default") |
| 16 | } |
| 17 | if a.Idempotent { |
| 18 | t.Error("Idempotent should be false by default") |
| 19 | } |
| 20 | if a.OpenWorld { |
| 21 | t.Error("OpenWorld should be false by default") |
| 22 | } |
| 23 | if a.RiskLevel != 0 { |
| 24 | t.Errorf("RiskLevel should be 0 by default, got %d", a.RiskLevel) |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func TestToolAnnotations_Clone(t *testing.T) { |
| 29 | original := &ToolAnnotations{ |