MCPcopy Index your code
hub / github.com/coder/coder / inlineImageCapFor

Function inlineImageCapFor

coderd/x/chatd/chatfile_internal_test.go:23–28  ·  view source on GitHub ↗

inlineImageCapFor returns the provider's inline image cap. Fails the test if the provider has no documented cap.

(t *testing.T, provider string)

Source from the content-addressed store, hash-verified

21// inlineImageCapFor returns the provider's inline image cap. Fails
22// the test if the provider has no documented cap.
23func 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

Calls 2

InlineImageCapBytesFunction · 0.92
HelperMethod · 0.65

Tested by

no test coverage detected