Documentation
    Preparing search index...

    Function mockMetainfo

    • Minimal single-file v1 .torrent document for a catalog image. The pieces field holds placeholder SHA-1 digests; the catalog infoHash is reported as its identity rather than the real digest of this dictionary.

      Parameters

      • image: LinuxDistroImage

        Catalog image.

      • trackers: readonly string[]

        Announce URLs embedded in the metainfo.

      Returns string

      Bencoded metainfo as a binary string (one char per byte).

      mockMetainfo(LINUX_DISTROS[0], []).startsWith('d8:announce');