MCPcopy Index your code
hub / github.com/apache/tvm / assert_in

Function assert_in

tests/python/ci/test_ci.py:899–904  ·  view source on GitHub ↗

Check that 'needle' is in 'haystack'

(needle: str, haystack: str)

Source from the content-addressed store, hash-verified

897
898
899def assert_in(needle: str, haystack: str):
900 """
901 Check that 'needle' is in 'haystack'
902 """
903 if needle not in haystack:
904 raise AssertionError(f"item not found:\n{needle}\nin:\n{haystack}")
905
906
907@tvm.testing.skip_if_wheel_test

Callers 7

test_docs_commentFunction · 0.85
test_pr_commentFunction · 0.85
test_ping_reviewersFunction · 0.85
test_github_tag_teamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…