# Path: eppy/EPlusInterfaceFunctions/iddindex.py
# def makename2refdct(commdct):
# def makeref2namesdct(name2refdct):
# def ref2names2commdct(ref2names, commdct):


from eppy.EPlusInterfaceFunctions import iddindex
                    {"idfobj": "referedto2"},
                    {
                        "field": ["Name"],
                        "reference": ["rname21", "rname22", "rname_both"],
                    },
                ],
                [
                    {"idfobj": "referingobj1"},
                    {"field": ["Name"]},
                    {
                        "field": ["referingfield"],
                        "type": ["object-list"],
                        "object-list": ["rname11"],
                        "validobjects": set(["referedto1".upper()]),
                    },
                ],
                [
                    {"idfobj": "referingobj2"},
                    {"field": ["Name"]},
                    {
                        "field": ["referingfield"],
                        "type": ["object-list"],
                        "object-list": ["rname_both"],
                        "validobjects": set(["REFEREDTO1", "REFEREDTO2"]),
                    },
                ],
            ],
        ),  # commdct, expected
    )
    for commdct, expected in thedata:

# Path: eppy/EPlusInterfaceFunctions/iddindex.py
# def makename2refdct(commdct):
# def makeref2namesdct(name2refdct):
# def ref2names2commdct(ref2names, commdct):


# Path: tests/EPlusInterfaceFunctions_tests/test_iddindex.py
from eppy.EPlusInterfaceFunctions import iddindex

                    {"idfobj": "referedto2"},
                    {
                        "field": ["Name"],
                        "reference": ["rname21", "rname22", "rname_both"],
                    },
                ],
                [
                    {"idfobj": "referingobj1"},
                    {"field": ["Name"]},
                    {
                        "field": ["referingfield"],
                        "type": ["object-list"],
                        "object-list": ["rname11"],
                        "validobjects": set(["referedto1".upper()]),
                    },
                ],
                [
                    {"idfobj": "referingobj2"},
                    {"field": ["Name"]},
                    {
                        "field": ["referingfield"],
                        "type": ["object-list"],
                        "object-list": ["rname_both"],
                        "validobjects": set(["REFEREDTO1", "REFEREDTO2"]),
                    },
                ],
            ],
        ),  # commdct, expected
    )
    for commdct, expected in thedata:

        name2refdct = iddindex.makename2refdct(commdct)