(t *testing.T)
| 129 | } |
| 130 | |
| 131 | func TestLocalRuntime_Contract(t *testing.T) { |
| 132 | t.Parallel() |
| 133 | |
| 134 | runRuntimeContract(t, func(t *testing.T) Runtime { |
| 135 | t.Helper() |
| 136 | prov := &mockProvider{id: "test/mock-model", stream: &mockStream{}} |
| 137 | root := agent.New("root", "You are a test agent", agent.WithModel(prov)) |
| 138 | tm := team.New(team.WithAgents(root)) |
| 139 | |
| 140 | rt, err := New(t.Context(), tm, WithSessionCompaction(false), WithModelStore(mockModelStore{})) |
| 141 | require.NoError(t, err) |
| 142 | return rt |
| 143 | }) |
| 144 | } |
nothing calls this directly
no test coverage detected