def _testMetadataPadding(data, reporter):
    header = unpackHeader(data)
    if not header["metaOffset"] or not header["privOffset"]:
        return
    paddingLength = calcPaddingLength(header["metaLength"])
    if not paddingLength:
        return
    paddingOffset = header["metaOffset"] + header["metaLength"]
    padding = data[paddingOffset:paddingOffset + paddingLength]
    expectedPadding = "\0" * paddingLength
    if padding != expectedPadding:
        reporter.logError(message="The metadata is not padded with null bytes.")
    else:
        reporter.logPass(message="The metadata is padded with null bytes,")

# does this need to be tested?
#
# def testMetadataIsCompressed(data, reporter):
#     """
#     Tests:
#     - The metadata must be compressed.
#     """
#     if _shouldSkipMetadataTest(data, reporter):
#         return
#     header = unpackHeader(data)
#     length = header["metaLength"]
#     origLength = header["metaOrigLength"]
#     if length >= origLength:
#         reporter.logError(message="The compressed metdata length (%d) is higher than or equal to the original, uncompressed length (%d)." % (length, origLength))
#         return True
#     reporter.logPass(message="The compressed metdata length is smaller than the original, uncompressed length.")
- The padding must be null.
dataset/ETHPy150Open typesupply/woffTools/Lib/woffTools/tools/validate.py/_testMetadataPadding