MCPcopy Create free account
hub / github.com/astercloud/aster / TestToolAnnotations_Defaults

Function TestToolAnnotations_Defaults

pkg/tools/annotations_test.go:8–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func 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
28func TestToolAnnotations_Clone(t *testing.T) {
29 original := &ToolAnnotations{

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected