MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / createTestPdf

Function createTestPdf

server/tests/integration/perspective-assets.test.ts:89–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87
88// Create a minimal PDF for testing
89function createTestPdf(): Buffer {
90 return Buffer.from(
91 '%PDF-1.4\n1 0 obj\n<< /Type /Catalog /Pages 2 0 R >>\nendobj\n' +
92 '2 0 obj\n<< /Type /Pages /Kids [] /Count 0 >>\nendobj\n' +
93 'xref\n0 3\n0000000000 65535 f \n0000000009 00000 n \n0000000058 00000 n \n' +
94 'trailer\n<< /Size 3 /Root 1 0 R >>\nstartxref\n109\n%%EOF'
95 );
96}
97
98describe('Perspective Assets Integration Tests', () => {
99 let server: HTTPServer;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected