inlineImageCapFor returns the provider's inline image cap. Fails the test if the provider has no documented cap.
(t *testing.T, provider string)
| 21 | // inlineImageCapFor returns the provider's inline image cap. Fails |
| 22 | // the test if the provider has no documented cap. |
| 23 | func inlineImageCapFor(t *testing.T, provider string) int { |
| 24 | t.Helper() |
| 25 | imageCap, ok := chatprovider.InlineImageCapBytes(provider) |
| 26 | require.Truef(t, ok, "expected provider %q to have an inline image cap", provider) |
| 27 | return imageCap |
| 28 | } |
| 29 | |
| 30 | // TestChatFileResolver_RejectsOversizedImages is the server-side |
| 31 | // safety net for browser-side resize: oversize images that reach the |
no test coverage detected