* Create a test MCPB file (just a simple ZIP)
()
| 175 | * Create a test MCPB file (just a simple ZIP) |
| 176 | */ |
| 177 | function createTestDxt() { |
| 178 | // Create a simple ZIP file content |
| 179 | // This is a minimal valid ZIP with one file |
| 180 | const zipContent = Buffer.from([ |
| 181 | 0x50, |
| 182 | 0x4b, |
| 183 | 0x03, |
| 184 | 0x04, // Local file header signature |
| 185 | 0x14, |
| 186 | 0x00, // Version needed |
| 187 | 0x00, |
| 188 | 0x00, // Flags |
| 189 | 0x00, |
| 190 | 0x00, // Compression method (stored) |
| 191 | 0x00, |
| 192 | 0x00, // Last mod time |
| 193 | 0x00, |
| 194 | 0x00, // Last mod date |
| 195 | 0x00, |
| 196 | 0x00, |
| 197 | 0x00, |
| 198 | 0x00, // CRC-32 |
| 199 | 0x0d, |
| 200 | 0x00, |
| 201 | 0x00, |
| 202 | 0x00, // Compressed size |
| 203 | 0x0d, |
| 204 | 0x00, |
| 205 | 0x00, |
| 206 | 0x00, // Uncompressed size |
| 207 | 0x0c, |
| 208 | 0x00, // Filename length |
| 209 | 0x00, |
| 210 | 0x00, // Extra field length |
| 211 | // Filename: "manifest.json" |
| 212 | 0x6d, |
| 213 | 0x61, |
| 214 | 0x6e, |
| 215 | 0x69, |
| 216 | 0x66, |
| 217 | 0x65, |
| 218 | 0x73, |
| 219 | 0x74, |
| 220 | 0x2e, |
| 221 | 0x6a, |
| 222 | 0x73, |
| 223 | 0x6f, |
| 224 | 0x6e, |
| 225 | // File content: '{"test":true}' |
| 226 | 0x7b, |
| 227 | 0x22, |
| 228 | 0x74, |
| 229 | 0x65, |
| 230 | 0x73, |
| 231 | 0x74, |
| 232 | 0x22, |
| 233 | 0x3a, |
| 234 | 0x74, |
no outgoing calls
no test coverage detected
searching dependent graphs…