(t *testing.T)
| 101 | } |
| 102 | |
| 103 | func TestSetToolStatus(t *testing.T) { |
| 104 | t.Parallel() |
| 105 | tr := newTestTranscript() |
| 106 | defer tr.StopAnimations() |
| 107 | |
| 108 | call, def := toolCall("call-1") |
| 109 | _ = tr.Append(types.ToolCallMessage(testAgent, call, def, types.ToolStatusConfirmation)) |
| 110 | |
| 111 | _, ok := tr.SetToolStatus("call-1", types.ToolStatusRunning) |
| 112 | require.True(t, ok) |
| 113 | assert.Equal(t, types.ToolStatusRunning, tr.msgs[0].ToolStatus) |
| 114 | |
| 115 | _, ok = tr.SetToolStatus("no-such-call", types.ToolStatusError) |
| 116 | assert.False(t, ok) |
| 117 | } |
| 118 | |
| 119 | func TestFinalizeToolCalls(t *testing.T) { |
| 120 | t.Parallel() |
nothing calls this directly
no test coverage detected