debugFile.ts 628 B

123456789101112131415161718192021222324
  1. import {type DebugFile, DebugFileFeature, DebugFileType} from 'sentry/types';
  2. export function DebugFileFixture(params = {}): DebugFile {
  3. return {
  4. objectName: 'libS.so',
  5. symbolType: 'elf',
  6. dateCreated: '2010-04-23T02:08:51.179486Z',
  7. debugId: '2oihoi4h5ioh34534oi5h',
  8. data: {
  9. type: DebugFileType.LIB,
  10. features: [DebugFileFeature.UNWIND],
  11. },
  12. id: '12345',
  13. size: 12345,
  14. sha1: '3245klnlk342n5kln3kl45n',
  15. uuid: '3425bkjb234k5jb234jk5',
  16. cpuName: 'arm64',
  17. headers: {
  18. 'Content-Type': 'application/x-elf-binary',
  19. },
  20. codeId: '12312k3jh123',
  21. ...params,
  22. };
  23. }