(t *testing.T)
| 630 | } |
| 631 | |
| 632 | func fakeStoreFile(t *testing.T) (chattool.StoreFileFunc, *[]byte) { |
| 633 | t.Helper() |
| 634 | |
| 635 | var stored []byte |
| 636 | return func(_ context.Context, name string, detectName string, data []byte) (chattool.AttachmentMetadata, error) { |
| 637 | assert.NotEmpty(t, name) |
| 638 | assert.NotEmpty(t, detectName) |
| 639 | stored = append([]byte(nil), data...) |
| 640 | return chattool.AttachmentMetadata{ |
| 641 | FileID: uuid.MustParse("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"), |
| 642 | MediaType: "text/markdown", |
| 643 | Name: name, |
| 644 | }, nil |
| 645 | }, &stored |
| 646 | } |
| 647 | |
| 648 | func decodeProposePlanResponse(t *testing.T, resp fantasy.ToolResponse) proposePlanResponse { |
| 649 | t.Helper() |
no test coverage detected