Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion backends/arm/test/misc/test_public_api_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

from pathlib import Path

import executorch.backends.arm as arm
from executorch.backends.arm import LAZY_IMPORTS
from executorch.backends.arm.scripts.generate_public_api_manifest import (
_collect_entry,
_collect_public_api,
_is_unstable_api,
_render_manifest,
)
from executorch.exir._warnings import deprecated
Expand All @@ -32,9 +34,12 @@ def _entry_block(path: str, entry: dict[str, str]) -> str:

def test_public_api_manifest_entries_are_well_formed():
entries = _collect_public_api()
expected_top_level_entries = {
name for name in LAZY_IMPORTS if not _is_unstable_api(getattr(arm, name))
}

assert entries
assert {path.split(".")[0] for path in entries} == set(LAZY_IMPORTS)
assert {path.split(".")[0] for path in entries} == expected_top_level_entries

for path, entry in entries.items():
assert entry["kind"] in {"class", "enum", "function"}
Expand Down
Loading