Skip PE-PWR/PE-VIA without datasheet current (2.61.1).
Trace-width vs current runs only with I_load/Imax/I_abs. Missing I is a skip, not INFO INSUFFICIENT, not USB 500 mA, not Iout_max-as-load.
This commit is contained in:
@@ -607,3 +607,16 @@ def test_does_not_use_layout_geometry():
|
||||
assert "LayoutPad" not in src
|
||||
assert "LayoutSegment" not in src
|
||||
assert "LayoutZone" not in src
|
||||
|
||||
|
||||
def test_usbc_vbus_does_not_invent_usb_500ma():
|
||||
"""No typical USB current and no PE-PWR check without datasheet I."""
|
||||
findings = check_interface_classes(_usbc_device_graph())
|
||||
blob = " ".join(
|
||||
" ".join(filter(None, (f.finding, f.why, f.facts, f.requirement, f.inference)))
|
||||
for f in findings
|
||||
).lower()
|
||||
assert "500 ma" not in blob
|
||||
assert "500ma" not in blob
|
||||
assert "0.5 a" not in blob
|
||||
assert not any(f.rule_id in {"PE-PWR-001", "PE-VIA-001"} for f in findings)
|
||||
|
||||
Reference in New Issue
Block a user