def _testTableDirectoryPadding(data, reporter):
    header = unpackHeader(data)
    directory = unpackDirectory(data)
    # test final table
    endError = False
    sfntEnd = None
    if header["metaOffset"] != 0:
        sfntEnd = header["metaOffset"]
    elif header["privOffset"] != 0:
        sfntEnd = header["privOffset"]
    else:
        sfntEnd = header["length"]
    if sfntEnd % 4:
        reporter.logError(message="The sfnt data does not end with proper padding.")
    else:
        reporter.logPass(message="The sfnt data ends with proper padding.")
    # test the bytes used for padding
    for table in directory:
        tag = table["tag"]
        offset = table["offset"]
        length = table["compLength"]
        paddingLength = calcPaddingLength(length)
        if paddingLength:
            paddingOffset = offset + length
            padding = data[paddingOffset:paddingOffset+paddingLength]
            expectedPadding = "\0" * paddingLength
            if padding != expectedPadding:
                reporter.logError(message="The \"%s\" table is not padded with null bytes." % tag)
            else:
                reporter.logPass(message="The \"%s\" table is padded with null bytes." % tag)
Selects all unknown options (not query string, API, or request options)
dataset/ETHPy150Open typesupply/woffTools/Lib/woffTools/tools/validate.py/_testTableDirectoryPadding--crossover with--dataset/ETHPy150Open Asana/python-asana/asana/client.py/Client._parse_parameter_options